|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.RISetChecker
public class RISetChecker
Checks a set or referential integrity constraints. Used to shield the caller from ReferencedKeyRIChecker and ForeignKeyRICheckers.
Field Summary | |
---|---|
private GenericRIChecker[] |
checkers
|
Constructor Summary | |
---|---|
RISetChecker(TransactionController tc,
FKInfo[] fkInfo)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private GenericRIChecker[] checkers
Constructor Detail |
---|
public RISetChecker(TransactionController tc, FKInfo[] fkInfo) throws StandardException
tc
- the xact controllerfkInfo
- the foreign key information
StandardException
- Thrown on failureMethod Detail |
---|
void reopen() throws StandardException
StandardException
- on errorpublic void doPKCheck(ExecRow row, boolean restrictCheckOnly) throws StandardException
row
- the row to check
StandardException
- on unexpected error, or
on a primary/unique key violationpublic void doFKCheck(ExecRow row) throws StandardException
row
- the row to check
StandardException
- 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 check
StandardException
- on unexpected error, or
on a primary/unique key violationpublic void close() throws StandardException
StandardException
- on error
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |