Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.ForeignKeyReferencedViolationException


            Key persistitKey = new Key((Persistit)null);
            FDBStoreDataHelper.unpackTuple(index, persistitKey, bkey);
            String key = ConstraintHandler.formatKey(session, index, persistitKey,
                                                     foreignKey.getReferencedColumns(),
                                                     foreignKey.getReferencingColumns());
            return new ForeignKeyReferencedViolationException(operation,
                                                              foreignKey.getReferencedTable().getName(),
                                                              key,
                                                              foreignKey.getConstraintName().getTableName(),
                                                              foreignKey.getReferencingTable().getName());
        }
View Full Code Here


            Key persistitKey = new Key((Persistit)null);
            FDBStoreDataHelper.unpackTuple(index, persistitKey, bkey);
            String key = ConstraintHandler.formatKey(session, index, persistitKey,
                                                     foreignKey.getReferencedColumns(),
                                                     foreignKey.getReferencingColumns());
            return new ForeignKeyReferencedViolationException(operation,
                                                              foreignKey.getReferencedTable().getName(),
                                                              key,
                                                              foreignKey.getConstraintName().getTableName(),
                                                              foreignKey.getReferencingTable().getName());
        }
View Full Code Here

            key = formatKey(session, index, foundKey, foreignKey.getReferencedColumns(), foreignKey.getReferencingColumns());
        }
        else {
            key = formatKey(session, row, foreignKey.getReferencedColumns());
        }
        throw new ForeignKeyReferencedViolationException(operation,
                                                         foreignKey.getReferencedTable().getName(),

                                                         key,
                                                         foreignKey.getConstraintName().getTableName(),
                                                         foreignKey.getReferencingTable().getName());
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.ForeignKeyReferencedViolationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.