public class RISetChecker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private GenericRIChecker[] |
checkers |
Constructor and Description |
---|
RISetChecker(TransactionController tc,
FKInfo[] fkInfo) |
Modifier and Type | Method and Description |
---|---|
void |
close()
clean up
|
void |
doFKCheck(ExecRow row)
Check that everything in the row is ok, i.e.
|
void |
doPKCheck(ExecRow row,
boolean restrictCheckOnly)
Check that there are no referenced primary keys in
the passed in row.
|
void |
doRICheck(int index,
ExecRow row,
boolean restrictCheckOnly)
Execute the specific RI check on the passed in row.
|
(package private) void |
reopen()
Do any work needed to reopen our ri checkers
for another round of checks.
|
private GenericRIChecker[] checkers
public RISetChecker(TransactionController tc, FKInfo[] fkInfo) throws StandardException
tc
- the xact controllerfkInfo
- the foreign key informationStandardException
- Thrown on failurevoid reopen() throws StandardException
StandardException
- on errorpublic void doPKCheck(ExecRow row, boolean restrictCheckOnly) throws StandardException
row
- the row to checkStandardException
- on unexpected error, or
on a primary/unique key violationpublic void doFKCheck(ExecRow row) throws StandardException
row
- the row to checkStandardException
- on unexpected error, or
on a primary/unique key violationpublic void doRICheck(int index, ExecRow row, boolean restrictCheckOnly) throws StandardException
index
- index into fkInforow
- the row to checkStandardException
- on unexpected error, or
on a primary/unique key violationpublic void close() throws StandardException
StandardException
- on errorApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.