| java.lang.Object org.apache.derby.impl.sql.execute.GenericRIChecker org.apache.derby.impl.sql.execute.ForeignKeyRIChecker
ForeignKeyRIChecker | public class ForeignKeyRIChecker extends GenericRIChecker (Code) | | A Referential Integrity checker for a foreign
key constraint. It makes sure the foreign key is
intact. This is used for a change to a foreign
key column. see ReferencedKeyRIChecker for the code
that validates changes to referenced keys.
|
Method Summary | |
void | doCheck(ExecRow row, boolean restrictCheckOnly) Check that the row either has a null column(s), or
corresponds to a row in the referenced key.
If the referenced key is found, then it is locked
when this method returns. | int | getRICheckIsolationLevel() Get the isolation level for the scan for
the RI check. |
doCheck | void doCheck(ExecRow row, boolean restrictCheckOnly) throws StandardException(Code) | | Check that the row either has a null column(s), or
corresponds to a row in the referenced key.
If the referenced key is found, then it is locked
when this method returns. The lock is held until
the next call to doCheck() or close().
Parameters: row - the row to check exception: StandardException - on unexped error, oron a foreign key violation |
getRICheckIsolationLevel | int getRICheckIsolationLevel()(Code) | | Get the isolation level for the scan for
the RI check.
NOTE: The level will eventually be instantaneous
locking once the implemenation changes.
The isolation level for the scan forthe RI check. |
|
|