Class MiscResultSet
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
-
- org.apache.derby.impl.sql.execute.MiscResultSet
-
- All Implemented Interfaces:
ResultSet
- Direct Known Subclasses:
SetTransactionResultSet
class MiscResultSet extends NoRowsResultSetImpl
This is a wrapper class which invokes the Execution-time logic for Misc statements. The real Execution-time logic lives inside the executeConstantAction() method. Note that when re-using the language result set tree across executions (DERBY-827) it is not possible to store the ConstantAction as a member variable, because a re-prepare of the statement will invalidate the stored ConstantAction. Re-preparing a statement does not create a new Activation unless the GeneratedClass has changed, so the existing result set tree may survive a re-prepare.
-
-
Field Summary
-
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 MiscResultSet(Activation activation)
Construct a MiscResultSet
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
No action is required, but not implemented in any base classvoid
close()
Tells the system that there will be no more calls to getNextRow() (until the next open() call), so it can free up the resources associated with the ResultSet.void
open()
Opens a MiscResultSet, executes the Activation's ConstantAction, and then immediately closes the MiscResultSet.-
Methods inherited from class org.apache.derby.impl.sql.execute.NoRowsResultSetImpl
addWarning, checkRowPosition, clearCurrentRow, close, doesCommit, evaluateGenerationClauses, finish, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCurrentTimeMillis, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getQueryPlanText, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, modifiedRowCount, returnsRows, setAfterLastRow, setBeforeFirstRow, setup, toXML
-
-
-
-
Constructor Detail
-
MiscResultSet
MiscResultSet(Activation activation)
Construct a MiscResultSet- Parameters:
activation
- Describes run-time environment.
-
-
Method Detail
-
open
public void open() throws StandardException
Opens a MiscResultSet, executes the Activation's ConstantAction, and then immediately closes the MiscResultSet.- Throws:
StandardException
- Standard Derby error policy.
-
close
public void close() throws StandardException
Description copied from interface:ResultSet
Tells the system that there will be no more calls to getNextRow() (until the next open() call), so it can free up the resources associated with the ResultSet.- Throws:
StandardException
- Thrown on error.
-
cleanUp
public void cleanUp()
No action is required, but not implemented in any base class- See Also:
ResultSet.cleanUp()
-
-