Class DMLVTIResultSet
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
-
- org.apache.derby.impl.sql.execute.DMLWriteResultSet
-
- org.apache.derby.impl.sql.execute.DMLVTIResultSet
-
- All Implemented Interfaces:
ResultSet
- Direct Known Subclasses:
DeleteVTIResultSet
,InsertVTIResultSet
,UpdateVTIResultSet
abstract class DMLVTIResultSet extends DMLWriteResultSet
Base class for Insert, Delete and UpdateVTIResultSet
-
-
Field Summary
Fields Modifier and Type Field Description (package private) UpdatableVTIConstantAction
constants
(package private) boolean
firstExecute
private int
numOpens
(package private) NoPutResultSet
savedSource
(package private) NoPutResultSet
sourceResultSet
(package private) TransactionController
tc
-
Fields inherited from class org.apache.derby.impl.sql.execute.DMLWriteResultSet
baseRowReadMap, cachedDestinations, constantAction, heapDCOCI, indexDCOCIs, resultDescription, rowCount, streamStorableHeapColIds
-
Fields inherited from class org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
activation, beginExecutionTime, beginTime, endExecutionTime, endTime, lcc
-
Fields inherited from interface org.apache.derby.iapi.sql.ResultSet
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
-
-
Constructor Summary
Constructors Constructor Description DMLVTIResultSet(NoPutResultSet source, Activation activation)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
Tells the system to clean up on an error.void
finish()
Tells the system that there will be no more access to any database information via this result set; in particular, no more calls to open().void
open()
Needs to be called before the result set will do anything.protected abstract void
openCore()
-
Methods inherited from class org.apache.derby.impl.sql.execute.DMLWriteResultSet
decodeLockMode, getIndexNameFromCID, getNextRowCore, getResultDescription, makeDeferredSparseRow, modifiedRowCount, normalizeRow, rememberConstraint
-
Methods inherited from class org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
addWarning, checkRowPosition, clearCurrentRow, close, doesCommit, evaluateGenerationClauses, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCurrentTimeMillis, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getQueryPlanText, getRelativeRow, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, returnsRows, setAfterLastRow, setBeforeFirstRow, setup, toXML
-
-
-
-
Field Detail
-
sourceResultSet
NoPutResultSet sourceResultSet
-
savedSource
NoPutResultSet savedSource
-
constants
UpdatableVTIConstantAction constants
-
tc
TransactionController tc
-
numOpens
private int numOpens
-
firstExecute
boolean firstExecute
-
-
Constructor Detail
-
DMLVTIResultSet
DMLVTIResultSet(NoPutResultSet source, Activation activation) throws StandardException
- Throws:
StandardException
- Thrown on error
-
-
Method Detail
-
open
public void open() throws StandardException
Description copied from interface:ResultSet
Needs to be called before the result set will do anything. Need to call before getNextRow(), or for a result set that doesn't return rows, this is the call that will cause all the work to be done.- Throws:
StandardException
- Standard Derby error policy
-
openCore
protected abstract void openCore() throws StandardException
- Throws:
StandardException
-
cleanUp
public void cleanUp() throws StandardException
Description copied from interface:ResultSet
Tells the system to clean up on an error.- Throws:
StandardException
- Thrown on error- See Also:
ResultSet.cleanUp()
-
finish
public void finish() throws StandardException
Description copied from interface:ResultSet
Tells the system that there will be no more access to any database information via this result set; in particular, no more calls to open(). Will close the result set if it is not already closed.- Specified by:
finish
in interfaceResultSet
- Overrides:
finish
in classNoRowsResultSetImpl
- Throws:
StandardException
- on error
-
-