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

pack-priv Class SavepointNode

extends DDLStatementNode
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.execute.ConstantAction

A SavepointNode is the root of a QueryTree that represents a Savepoint (ROLLBACK savepoint, RELASE savepoint and SAVEPOINT) statement.

Field Summary

Modifier and TypeField and Description
private String
private int
Inherited from org.apache.derby.impl.sql.compile.DDLStatementNode:
ADD_TYPEDROP_STATISTICSDROP_TYPEimplicitCreateSchemaLOCKING_TYPEMODIFY_TYPEUNKNOWN_TYPEUPDATE_STATISTICS

Constructor Summary

AccessConstructor and Description
pack-priv
SavepointNode(String
The name of the savepoint
objectName
,
int
Type of savepoint statement ie rollback, release or set savepoint
savepointStatementType
,
ContextManager
The context manager
cm
)

Constructor for a SavepointNode

Method Summary

Modifier and TypeMethod and Description
public ConstantAction
makeConstantAction()

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

Create the Constant information that will drive the guts of Execution.

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.

pack-priv String
public String

Returns:

This object as a String
toString
()

Overrides org.apache.derby.impl.sql.compile.DDLStatementNode.toString.

Convert this object to a String.

Inherited from org.apache.derby.impl.sql.compile.DDLStatementNode:
acceptChildrenactivationKindgenerategetFullNamegetObjectNamegetRelativeNamegetSchemaDescriptorgetSchemaDescriptorgetTableDescriptorgetTableDescriptorgetTableDescriptorgetTableDescriptorinitAndCheckisAtomicmakeFromList

Field Detail

savepointNameback to summary
private String savepointName
savepointStatementTypeback to summary
private int savepointStatementType

Constructor Detail

SavepointNodeback to summary
pack-priv SavepointNode(String objectName, int savepointStatementType, ContextManager cm) throws StandardException

Constructor for a SavepointNode

Parameters
objectName:String

The name of the savepoint

savepointStatementType:int

Type of savepoint statement ie rollback, release or set savepoint

cm:ContextManager

The context manager

Exceptions
StandardException:
Thrown on error

Method Detail

makeConstantActionback to summary
public ConstantAction makeConstantAction() throws StandardException

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

Create the Constant information that will drive the guts of Execution.

Annotations
@Override
Exceptions
StandardException:
Thrown on failure
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
statementToStringback to summary
pack-priv String statementToString()

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

toStringback to summary
public String toString()

Overrides org.apache.derby.impl.sql.compile.DDLStatementNode.toString.

Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.

Returns:String

This object as a String

Annotations
@Override