Examples of ForeignKeyReferencingViolationException


Examples of com.foundationdb.server.error.ForeignKeyReferencingViolationException

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

Examples of com.foundationdb.server.error.ForeignKeyReferencingViolationException

                                             RowData row, ForeignKey foreignKey, String operation);

    protected void notReferencing(Session session, Index index, SDType storeData,
                                  RowData row, ForeignKey foreignKey, String operation) {
        String key = formatKey(session, row, foreignKey.getReferencingColumns());
        throw new ForeignKeyReferencingViolationException(operation,
                                                          foreignKey.getReferencingTable().getName(),
                                                          key,
                                                          foreignKey.getConstraintName().getTableName(),
                                                          foreignKey.getReferencedTable().getName());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.