public class RISetChecker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private GenericRIChecker[] |
checkers |
(package private) LanguageConnectionContext |
lcc |
Constructor and Description |
---|
RISetChecker(LanguageConnectionContext lcc,
TransactionController tc,
FKInfo[] fkInfo) |
Modifier and Type | Method and Description |
---|---|
void |
close()
clean up
|
void |
doFKCheck(Activation a,
ExecRow row)
Check that everything in the row is ok, i.e.
|
void |
doPKCheck(Activation a,
ExecRow row,
boolean restrictCheckOnly,
int deferredRowReq)
Check that there are no referenced primary keys in
the passed in row.
|
void |
doRICheck(Activation a,
int index,
ExecRow row,
boolean restrictCheckOnly,
int deferredRowReq)
Execute the specific RI check on the passed in row.
|
void |
postCheck() |
void |
postCheck(int index) |
(package private) void |
reopen()
Do any work needed to reopen our ri checkers
for another round of checks.
|
private GenericRIChecker[] checkers
LanguageConnectionContext lcc
public RISetChecker(LanguageConnectionContext lcc, TransactionController tc, FKInfo[] fkInfo) throws StandardException
lcc
- the language connection contexttc
- the xact controllerfkInfo
- the foreign key informationStandardException
- Thrown on failurevoid reopen() throws StandardException
StandardException
- on errorpublic void doPKCheck(Activation a, ExecRow row, boolean restrictCheckOnly, int deferredRowReq) throws StandardException
a
- The activationrow
- The row to checkrestrictCheckOnly
- true
if the check is relevant only for RESTRICTED
referential action.deferredRowReq
- For referenced keys: The required number of duplicates that
need to be present. Only used if postCheck==false
.StandardException
- on unexpected error, or
on a primary/unique key violationpublic void postCheck() throws StandardException
StandardException
public void postCheck(int index) throws StandardException
StandardException
public void doFKCheck(Activation a, ExecRow row) throws StandardException
a
- the activationrow
- the row to checkStandardException
- on unexpected error, or
on a primary/unique key violationpublic void doRICheck(Activation a, int index, ExecRow row, boolean restrictCheckOnly, int deferredRowReq) throws StandardException
a
- the activationindex
- index into fkInforow
- the row to checkrestrictCheckOnly
- true
if the check is relevant only for RESTRICTED
referential action.deferredRowReq
- For referenced keys: the required number of duplicates that
need to be present. Only used if postCheck==false
.StandardException
- on unexpected error, or
on a primary/unique key violationpublic void close() throws StandardException
StandardException
- on errorApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.