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

pack-priv abstract Class MiscellaneousStatementNode

extends StatementNode
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.compile.SetConstraintsNode, org.apache.derby.impl.sql.compile.SetRoleNode, org.apache.derby.impl.sql.compile.SetSchemaNode, org.apache.derby.impl.sql.compile.LockTableNode
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.ClassName, org.apache.derby.iapi.services.classfile.VMOpcode, org.apache.derby.iapi.services.compiler.MethodBuilder, org.apache.derby.iapi.services.context.ContextManager

A MiscellaneousStatement represents any type of statement that doesn't fit into the well defined categories: SET (non-transaction).

Field Summary

Inherited from org.apache.derby.impl.sql.compile.StatementNode:
EMPTY_TD_LISTNEED_CURSOR_ACTIVATIONNEED_DDL_ACTIVATIONNEED_NOTHING_ACTIVATIONNEED_PARAM_ACTIVATIONNEED_ROW_ACTIVATION

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv void
generate(ActivationClassBuilder
The ActivationClassBuilder for the class being built
acb
,
MethodBuilder
the method for the execute() method to be built
mb
)

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.generate.

Generic generate code for all Misc statements that need activations.

public boolean

Returns:

boolean Whether or not this Statement requires a set/clear savepoint
needsSavepoint
()

Overrides org.apache.derby.impl.sql.compile.StatementNode.needsSavepoint.

Returns whether or not this Statement requires a set/clear savepoint around its execution.

Inherited from org.apache.derby.impl.sql.compile.StatementNode:
bindStatementexecuteSchemaNameexecuteStatementNamegenerategetCursorInfogetSPSNameisAtomiclockTableForCompilationmakeResultDescriptionoptimizeStatementstatementToStringtoStringupdateIndexStatisticsFor

Constructor Detail

MiscellaneousStatementNodeback to summary
pack-priv MiscellaneousStatementNode(ContextManager cm)

Method Detail

activationKindback to summary
pack-priv int activationKind()

Implements abstract org.apache.derby.impl.sql.compile.StatementNode.activationKind.

generateback to summary
pack-priv void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.generate.

Generic generate code for all Misc statements that need activations.

Parameters
acb:ActivationClassBuilder

The ActivationClassBuilder for the class being built

mb:MethodBuilder

the method for the execute() method to be built

Annotations
@Override
Exceptions
StandardException:
Thrown on error
needsSavepointback to summary
public boolean needsSavepoint()

Overrides org.apache.derby.impl.sql.compile.StatementNode.needsSavepoint.

Returns whether or not this Statement requires a set/clear savepoint around its execution. The following statement "types" do not require them: Cursor - unnecessary and won't work in a read only environment Xact - savepoint will get blown away underneath us during commit/rollback

Returns:boolean

boolean Whether or not this Statement requires a set/clear savepoint

Annotations
@Override