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

pack-priv Class MiscResultSet

extends NoRowsResultSetImpl
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.execute.SetTransactionResultSet
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.Activation

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

Inherited from org.apache.derby.impl.sql.execute.NoRowsResultSetImpl:
activationbeginExecutionTimebeginTimeendExecutionTimeendTimelcc

Constructor Summary

AccessConstructor and Description
pack-priv
MiscResultSet(Activation
Describes run-time environment.
activation
)

Construct a MiscResultSet

Method Summary

Modifier and TypeMethod and Description
public void
cleanUp()

Implements org.apache.derby.iapi.sql.ResultSet.cleanUp.

No action is required, but not implemented in any base class

public void
close()

Implements org.apache.derby.iapi.sql.ResultSet.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.

public void
open()

Implements org.apache.derby.iapi.sql.ResultSet.open.

Opens a MiscResultSet, executes the Activation's ConstantAction, and then immediately closes the MiscResultSet.

Inherited from org.apache.derby.impl.sql.execute.NoRowsResultSetImpl:
addWarningcheckRowPositionclearCurrentRowclosedoesCommitevaluateGenerationClausesfinishgetAbsoluteRowgetActivationgetAutoGeneratedKeysResultsetgetBeginExecutionTimestampgetCurrentTimeMillisgetCursorNamegetEndExecutionTimestampgetExecuteTimegetFirstRowgetLastRowgetNextRowgetPreviousRowgetQueryPlanTextgetRelativeRowgetResultDescriptiongetRowNumbergetSubqueryTrackingArraygetTimeSpentgetWarningsisClosedmodifiedRowCountreturnsRowssetAfterLastRowsetBeforeFirstRowsetuptoXML

Constructor Detail

MiscResultSetback to summary
pack-priv MiscResultSet(Activation activation)

Construct a MiscResultSet

Parameters
activation:Activation

Describes run-time environment.

Method Detail

cleanUpback to summary
public void cleanUp()

Implements org.apache.derby.iapi.sql.ResultSet.cleanUp.

No action is required, but not implemented in any base class

See Also
org.apache.derby.iapi.sql.ResultSet#cleanUp
closeback to summary
public void close() throws StandardException

Implements org.apache.derby.iapi.sql.ResultSet.close.

Doc from org.apache.derby.iapi.sql.ResultSet.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.

Exceptions
StandardException:
Thrown on error.
openback to summary
public void open() throws StandardException

Implements org.apache.derby.iapi.sql.ResultSet.open.

Opens a MiscResultSet, executes the Activation's ConstantAction, and then immediately closes the MiscResultSet.

Exceptions
StandardException:
Standard Derby error policy.