| java.lang.Object org.apache.derby.impl.sql.execute.RISetChecker
RISetChecker | public class RISetChecker (Code) | | Checks a set or referential integrity constraints. Used
to shield the caller from ReferencedKeyRIChecker and
ForeignKeyRICheckers.
|
Method Summary | |
public void | close() | public void | doFKCheck(ExecRow row) Check that everything in the row is ok, i.e. | public void | doPKCheck(ExecRow row, boolean restrictCheckOnly) Check that there are no referenced primary keys in
the passed in row. | public void | doRICheck(int index, ExecRow row, boolean restrictCheckOnly) Execute the specific RI check on the passed in row. | void | reopen() Do any work needed to reopen our ri checkers
for another round of checks. |
doFKCheck | public void doFKCheck(ExecRow row) throws StandardException(Code) | | Check that everything in the row is ok, i.e.
that there are no foreign keys in the passed
in row that have invalid values.
Parameters: row - the row to check exception: StandardException - on unexpected error, oron a primary/unique key violation |
doPKCheck | public void doPKCheck(ExecRow row, boolean restrictCheckOnly) throws StandardException(Code) | | Check that there are no referenced primary keys in
the passed in row. So for each foreign key that
references a primary key constraint, make sure
that there is no row that matches the values in
the passed in row.
Parameters: row - the row to check exception: StandardException - on unexpected error, oron a primary/unique key violation |
doRICheck | public void doRICheck(int index, ExecRow row, boolean restrictCheckOnly) throws StandardException(Code) | | Execute the specific RI check on the passed in row.
Parameters: index - index into fkInfo Parameters: row - the row to check exception: StandardException - on unexpected error, oron a primary/unique key violation |
|
|