Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv final Class ValidateCheckConstraintResultSet

extends TableScanResultSet
implements CursorResultSet, Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable, org.apache.derby.iapi.sql.execute.CursorResultSet, org.apache.derby.iapi.sql.ResultSet
Imports
org.apache.derby.shared.common.error.ExceptionUtil, .StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.loader.GeneratedMethod, org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.execute.CursorResultSet, org.apache.derby.iapi.store.access.Qualifier, .StaticCompiledOpenConglomInfo

Special result set used when checking deferred CHECK constraints. Activated by a special --DERBY_PROPERTY validateCheckConstraint=<baseTableUUIDString> override on a SELECT query, cf DeferredConstraintsMemory#validateCheck. It relies on having a correct row location set prior to invoking getNewtRowCore, cf. the special code path in ProjectRestrictResultSet#getNextRowCore activated by #validatingCheckConstraint.

Field Summary

Inherited from org.apache.derby.impl.sql.execute.TableScanResultSet:
coarserLockconglomIdcurrentRowIsValiddcocifirstScanforUpdateindexColsisConstraintisKeyednextDoneoneRowScanpast2FutureTblqualifiersqualifyrowsPerReadrowsThisScanrunTimeStatisticsOnsameStartStopPositionscanControllerscanControllerOpenedscanRepositionedscocistartKeyGetterstartPositionstartPositionStringstartSearchOperatorstopKeyGetterstopPositionstopPositionStringstopSearchOperatoruserSuppliedOptimizerOverrides

Constructor Summary

AccessConstructor and Description
pack-priv
ValidateCheckConstraintResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, int resultRowTemplate, int resultSetNumber, GeneratedMethod startKeyGetter, int startSearchOperator, GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, Qualifier[][] qualifiers, String tableName, String userSuppliedOptimizerOverrides, String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel, int rowsPerRead, boolean oneRowScan, double optimizerEstimatedRowCount, double optimizerEstimatedCost)

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
Inherited from org.apache.derby.impl.sql.execute.TableScanResultSet:
canGetInstantaneousLockscloneclosegetCurrentRowgetNextRowCoregetRowLocationgetScanPropertiesgetTimeSpentinitStartAndStopKeyisForUpdateopenCoreopenScanControllerpositionScanAtRowLocationprintStartPositionprintStopPositionreopenCorereopenScanControllerrequiresRelockingsetRowCountIfPossible

Constructor Detail

ValidateCheckConstraintResultSetback to summary
pack-priv ValidateCheckConstraintResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, int resultRowTemplate, int resultSetNumber, GeneratedMethod startKeyGetter, int startSearchOperator, GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, Qualifier[][] qualifiers, String tableName, String userSuppliedOptimizerOverrides, String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel, int rowsPerRead, boolean oneRowScan, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException

Method Detail

loopControlback to summary
pack-priv boolean loopControl(boolean moreRows) throws StandardException

Overrides org.apache.derby.impl.sql.execute.TableScanResultSet.loopControl.

Annotations
@Override