org.apache.derby.impl.sql.execute
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 & UpdateVTIResultSet
Method Summary |
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(). |
ResultDescription |
getResultDescription()
Returns the description of the inserted rows. |
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.NoRowsResultSetImpl |
checkRowPosition, clearCurrentRow, close, doesCommit, evaluateACheckConstraint, evaluateCheckConstraints, evaluateGenerationClauses, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCurrentTimeMillis, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getQueryPlanText, getRelativeRow, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, returnsRows, setAfterLastRow, setBeforeFirstRow, setup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourceResultSet
NoPutResultSet sourceResultSet
savedSource
NoPutResultSet savedSource
constants
UpdatableVTIConstantAction constants
tc
TransactionController tc
resultDescription
ResultDescription resultDescription
numOpens
private int numOpens
firstExecute
boolean firstExecute
DMLVTIResultSet
DMLVTIResultSet(NoPutResultSet source,
Activation activation)
throws StandardException
- Throws:
StandardException
- Thrown on error
getResultDescription
public ResultDescription getResultDescription()
- Returns the description of the inserted rows.
REVISIT: Do we want this to return NULL instead?
- Specified by:
getResultDescription
in interface ResultSet
- Overrides:
getResultDescription
in class NoRowsResultSetImpl
- Returns:
- A ResultDescription describing the results of the
statement.
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 interface ResultSet
- Overrides:
finish
in class NoRowsResultSetImpl
- Throws:
StandardException
- on error
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.