org.apache.derby.impl.sql.compile
Class SavepointNode
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.StatementNode
org.apache.derby.impl.sql.compile.DDLStatementNode
org.apache.derby.impl.sql.compile.SavepointNode
- All Implemented Interfaces:
- Visitable
public class SavepointNode
- extends DDLStatementNode
A SavepointNode is the root of a QueryTree that represents a Savepoint (ROLLBACK savepoint, RELASE savepoint and SAVEPOINT)
statement.
Method Summary |
void |
init(java.lang.Object objectName,
java.lang.Object savepointStatementType)
Initializer for a SavepointNode |
ConstantAction |
makeConstantAction()
Create the Constant information that will drive the guts of Execution. |
boolean |
needsSavepoint()
Returns whether or not this Statement requires a set/clear savepoint
around its execution. |
java.lang.String |
statementToString()
|
java.lang.String |
toString()
Convert this object to a String. |
Methods inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode |
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic, makeFromList |
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExist |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
savepointName
private java.lang.String savepointName
savepointStatementType
private int savepointStatementType
SavepointNode
public SavepointNode()
init
public void init(java.lang.Object objectName,
java.lang.Object savepointStatementType)
throws StandardException
- Initializer for a SavepointNode
- Overrides:
init
in class QueryTreeNode
- Parameters:
objectName
- The name of the savepointsavepointStatementType
- Type of savepoint statement ie rollback, release or set savepoint
- Throws:
StandardException
- Thrown on error
toString
public java.lang.String toString()
- Convert this object to a String. See comments in QueryTreeNode.java
for how this should be done for tree printing.
- Overrides:
toString
in class DDLStatementNode
- Returns:
- This object as a String
statementToString
public java.lang.String statementToString()
- Specified by:
statementToString
in class StatementNode
needsSavepoint
public boolean 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
- Overrides:
needsSavepoint
in class StatementNode
- Returns:
- boolean Whether or not this Statement requires a set/clear savepoint
makeConstantAction
public ConstantAction makeConstantAction()
throws StandardException
- Create the Constant information that will drive the guts of Execution.
- Overrides:
makeConstantAction
in class QueryTreeNode
- Throws:
StandardException
- Thrown on failure
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.