org.apache.derby.impl.sql.compile
Class TransactionStatementNode

java.lang.Object
  extended byorg.apache.derby.impl.sql.compile.QueryTreeNode
      extended byorg.apache.derby.impl.sql.compile.StatementNode
          extended byorg.apache.derby.impl.sql.compile.TransactionStatementNode
All Implemented Interfaces:
Visitable
Direct Known Subclasses:
SetTransactionIsolationNode

public abstract class TransactionStatementNode
extends StatementNode

A TransactionStatementNode represents any type of Transaction statement: SET TRANSACTION, COMMIT, and ROLLBACK.

Author:
Ames Carlson

Field Summary
 
Fields inherited from class org.apache.derby.impl.sql.compile.StatementNode
NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION
 
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset
 
Constructor Summary
TransactionStatementNode()
           
 
Method Summary
(package private)  int activationKind()
           
 boolean isAtomic()
          COMMIT and ROLLBACK are allowed to commit and rollback, duh.
 boolean needsSavepoint()
          Returns whether or not this Statement requires a set/clear savepoint around its execution.
 
Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode
generate, lockTableForCompilation, statementToString, toString
 
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, bind, convertDefaultNode, debugFlush, debugPrint, executeSchemaName, executeStatementName, formatNodeString, foundString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getSPSName, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, isSessionSchema, isSessionSchema, makeConstantAction, makeResultDescription, makeTableName, nodeHeader, optimize, parseQueryText, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, treePrint, treePrint, verifyClassExist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionStatementNode

public TransactionStatementNode()
Method Detail

activationKind

int activationKind()
Specified by:
activationKind in class StatementNode

isAtomic

public boolean isAtomic()
COMMIT and ROLLBACK are allowed to commit and rollback, duh.

Overrides:
isAtomic in class StatementNode
Returns:
false

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 QueryTreeNode
Returns:
boolean Whether or not this Statement requires a set/clear savepoint

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.