Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.sql.execute
Class ReferencedKeyRIChecker  view ReferencedKeyRIChecker download ReferencedKeyRIChecker.java

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.GenericRIChecker
      extended byorg.apache.derby.impl.sql.execute.ReferencedKeyRIChecker

public class ReferencedKeyRIChecker
extends GenericRIChecker

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
(package private) ReferencedKeyRIChecker(org.apache.derby.iapi.store.access.TransactionController tc, FKInfo fkinfo)
           
 
Method Summary
(package private)  void doCheck(org.apache.derby.iapi.sql.execute.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

ReferencedKeyRIChecker(org.apache.derby.iapi.store.access.TransactionController tc,
                       FKInfo fkinfo)
                 throws org.apache.derby.iapi.error.StandardException
Method Detail

doCheck

void doCheck(org.apache.derby.iapi.sql.execute.ExecRow row,
             boolean restrictCheckOnly)
       throws org.apache.derby.iapi.error.StandardException
Check that the row either has a null column(s), or has no corresponding foreign keys.

If a foreign key is found, an exception is thrown. If not, the scan is closed.

Specified by:
doCheck in class GenericRIChecker