|
|||||||||
| 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
public abstract class GenericRIChecker
Generic implementation of a Referential Integrity checker. Abstract.
| Field Summary | |
|---|---|
protected DynamicCompiledOpenConglomInfo[] |
fkDcocis
|
protected FKInfo |
fkInfo
|
protected StaticCompiledOpenConglomInfo[] |
fkScocis
|
private IndexRow |
indexQualifierRow
|
private int |
numColumns
|
protected DynamicCompiledOpenConglomInfo |
refDcoci
|
protected StaticCompiledOpenConglomInfo |
refScoci
|
private java.util.Hashtable |
scanControllers
|
protected TransactionController |
tc
|
| Constructor Summary | |
|---|---|
GenericRIChecker(TransactionController tc,
FKInfo fkinfo)
|
|
| Method Summary | |
|---|---|
(package private) void |
close()
Clean up all scan controllers |
void |
doCheck(ExecRow row)
|
(package private) abstract void |
doCheck(ExecRow row,
boolean restrictCheckOnly)
Check the validity of this row |
(package private) int |
getRICheckIsolationLevel()
Get the isolation level for the scan for the RI check. |
protected ScanController |
getScanController(long conglomNumber,
StaticCompiledOpenConglomInfo scoci,
DynamicCompiledOpenConglomInfo dcoci,
ExecRow searchRow)
Get a scan controller positioned using searchRow as the start/stop position. |
(package private) boolean |
isAnyFieldNull(ExecRow baseRow)
Are any of the fields null in the row passed in. |
private void |
setupQualifierRow(ExecRow baseRow)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FKInfo fkInfo
protected DynamicCompiledOpenConglomInfo[] fkDcocis
protected StaticCompiledOpenConglomInfo[] fkScocis
protected DynamicCompiledOpenConglomInfo refDcoci
protected StaticCompiledOpenConglomInfo refScoci
protected TransactionController tc
private java.util.Hashtable scanControllers
private int numColumns
private IndexRow indexQualifierRow
| Constructor Detail |
|---|
GenericRIChecker(TransactionController tc,
FKInfo fkinfo)
throws StandardException
tc - the xact controllerfkinfo - the foreign key information
StandardException - Thrown on failure| Method Detail |
|---|
abstract void doCheck(ExecRow row,
boolean restrictCheckOnly)
throws StandardException
row - the row to check
StandardException - on error
public void doCheck(ExecRow row)
throws StandardException
StandardException
protected ScanController getScanController(long conglomNumber,
StaticCompiledOpenConglomInfo scoci,
DynamicCompiledOpenConglomInfo dcoci,
ExecRow searchRow)
throws StandardException
conglomNumber - the particular conglomerate we
are interested insearchRow - the row to match
StandardException - on errorprivate void setupQualifierRow(ExecRow baseRow)
boolean isAnyFieldNull(ExecRow baseRow)
void close()
throws StandardException
StandardException - on errorint getRICheckIsolationLevel()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||