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

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
              extended byorg.apache.derby.impl.sql.compile.SetTransactionIsolationNode
All Implemented Interfaces:
Visitable

public class SetTransactionIsolationNode
extends TransactionStatementNode

A SetTransactionIsolationNode is the root of a QueryTree that represents a SET TRANSACTION ISOLATION command

Author:
Jerry Brenner

Field Summary
private  int isolationLevel
           
 
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
SetTransactionIsolationNode()
           
 
Method Summary
 void generate(ActivationClassBuilder acb, MethodBuilder mb)
          generates a the code.
 void init(java.lang.Object isolationLevel)
          Initializer for SetTransactionIsolationNode
 ConstantAction makeConstantAction()
          Create the Constant information that will drive the guts of 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.TransactionStatementNode
activationKind, isAtomic, needsSavepoint
 
Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode
generate, lockTableForCompilation
 
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, bind, convertDefaultNode, debugFlush, debugPrint, executeSchemaName, executeStatementName, formatNodeString, foundString, 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, isInstanceOf, isSessionSchema, isSessionSchema, 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
 

Field Detail

isolationLevel

private int isolationLevel
Constructor Detail

SetTransactionIsolationNode

public SetTransactionIsolationNode()
Method Detail

init

public void init(java.lang.Object isolationLevel)
Initializer for SetTransactionIsolationNode

Overrides:
init in class QueryTreeNode
Parameters:
isolationLevel - The new isolation level

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 StatementNode
Returns:
This object as a String

statementToString

public java.lang.String statementToString()
Specified by:
statementToString in class StatementNode

generate

public void generate(ActivationClassBuilder acb,
                     MethodBuilder mb)
              throws StandardException
generates a the code.

Overrides:
generate in class QueryTreeNode
Parameters:
acb - the activation class builder for this statement
mb - The method for the method to be built
Throws:
StandardException - thrown if generation fails

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

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.