Package com.foundationdb.server.error

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


                                             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

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

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.