use of org.apache.derby.impl.sql.execute.DeferredConstraintsMemory.ValidationInfo in project derby by apache.
the class GenericLanguageConnectionContext method validateDeferredConstraint.
/**
* Validate a deferred constraint.
*
* @param cd the descriptor of the constraint to validate
*/
private void validateDeferredConstraint(ConstraintDescriptor cd) throws StandardException {
if (deferredHashTables == null) {
// Nothing to do.
return;
}
// For CHECK constraints, the key is the table id. All other
// constraints use the constraint id as key.
UUID key = cd.hasBackingIndex() ? cd.getUUID() : cd.getTableId();
ValidationInfo vi = deferredHashTables.get(key);
if (vi == null) {
// Nothing to do
return;
}
vi.validateConstraint(this, cd.getUUID(), false);
// No violations, bug can't forget since we might roll back to a
// savepoint that migh re-introduce the violations
// DERBY-6670-
//
// deferredHashTables.remove(key);
}
Aggregations