public class ForeignKeyRIChecker extends GenericRIChecker
deferredRowsHashTable, fkDcocis, fkInfo, fkScocis, identityMap, indexQualifierRow, lcc, numColumns, refDcoci, refScoci, tc
Constructor and Description |
---|
ForeignKeyRIChecker(LanguageConnectionContext lcc,
TransactionController tc,
FKInfo fkinfo) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
doCheck(Activation a,
ExecRow row,
boolean restrictCheckOnly,
int deferredRowReq)
Check that the row either has a null column(s), or
corresponds to a row in the referenced key.
|
(package private) int |
getRICheckIsolationLevel()
Get the isolation level for the scan for
the RI check.
|
close, getScanController, isAnyFieldNull
ForeignKeyRIChecker(LanguageConnectionContext lcc, TransactionController tc, FKInfo fkinfo) throws StandardException
lcc
- the language connection contexttc
- the xact controllerfkinfo
- the foreign key informationStandardException
- Thrown on failurevoid doCheck(Activation a, ExecRow row, boolean restrictCheckOnly, int deferredRowReq) throws StandardException
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().
doCheck
in class GenericRIChecker
a
- the activationrow
- the row to checkrestrictCheckOnly
- true
if the check is relevant only for RESTRICTED
referential action.deferredRowReq
- dummy (interface obligation only)StandardException
- on unexpected error, or
on a foreign key violationint getRICheckIsolationLevel()
getRICheckIsolationLevel
in class GenericRIChecker
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.