|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.GenericRIChecker
org.apache.derby.impl.sql.execute.ReferencedKeyRIChecker
public class ReferencedKeyRIChecker
A Referential Integrity checker for a change to a referenced key (primary or unique). Makes sure that all the referenced key row is not referenced by any of its foreign keys. see ForeignKeyRIChecker for the code that validates changes to foreign keys.
Field Summary |
---|
Fields inherited from class org.apache.derby.impl.sql.execute.GenericRIChecker |
---|
fkDcocis, fkInfo, fkScocis, refDcoci, refScoci, tc |
Constructor Summary | |
---|---|
ReferencedKeyRIChecker(TransactionController tc,
FKInfo fkinfo)
|
Method Summary | |
---|---|
(package private) void |
doCheck(ExecRow row,
boolean restrictCheckOnly)
Check that the row either has a null column(s), or has no corresponding foreign keys. |
Methods inherited from class org.apache.derby.impl.sql.execute.GenericRIChecker |
---|
close, doCheck, getRICheckIsolationLevel, getScanController, isAnyFieldNull |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ReferencedKeyRIChecker(TransactionController tc, FKInfo fkinfo) throws StandardException
tc
- the xact controllerfkinfo
- the foreign key information
StandardException
- Thrown on failureMethod Detail |
---|
void doCheck(ExecRow row, boolean restrictCheckOnly) throws StandardException
If a foreign key is found, an exception is thrown. If not, the scan is closed.
doCheck
in class GenericRIChecker
row
- the row to check
StandardException
- on unexpected error, or
on a primary/unique key violation
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |