java.lang.Object
org.apache.derby.impl.sql.execute.RISetChecker
- public class RISetChecker
- extends java.lang.Object
Checks a set or referential integrity constraints. Used
to shield the caller from ReferencedKeyRIChecker and
ForeignKeyRICheckers.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
checkers
private GenericRIChecker[] checkers
RISetChecker
public RISetChecker(org.apache.derby.iapi.store.access.TransactionController tc,
FKInfo[] fkInfo)
throws org.apache.derby.iapi.error.StandardException
reopen
void reopen()
throws org.apache.derby.iapi.error.StandardException
- Do any work needed to reopen our ri checkers
for another round of checks. Must do a close()
first.
doPKCheck
public void doPKCheck(org.apache.derby.iapi.sql.execute.ExecRow row,
boolean restrictCheckOnly)
throws org.apache.derby.iapi.error.StandardException
- Check that there are no referenced primary keys in
the passed in row. So for each foreign key that
references a primary key constraint, make sure
that there is no row that matches the values in
the passed in row.
doFKCheck
public void doFKCheck(org.apache.derby.iapi.sql.execute.ExecRow row)
throws org.apache.derby.iapi.error.StandardException
- Check that everything in the row is ok, i.e.
that there are no foreign keys in the passed
in row that have invalid values.
doRICheck
public void doRICheck(int index,
org.apache.derby.iapi.sql.execute.ExecRow row,
boolean restrictCheckOnly)
throws org.apache.derby.iapi.error.StandardException
- Execute the specific RI check on the passed in row.
close
public void close()
throws org.apache.derby.iapi.error.StandardException
- clean up