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

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.MiscellaneousStatementNode
All Implemented Interfaces:
Visitable
Direct Known Subclasses:
LockTableNode, SetSchemaNode

public abstract class MiscellaneousStatementNode
extends StatementNode

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

Author:
Jerry Brenner

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
MiscellaneousStatementNode()
           
 
Method Summary
(package private)  int activationKind()
           
 void generate(ActivationClassBuilder acb, MethodBuilder mb)
          Generic generate code for all Misc statements that need activations.
 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, isAtomic, lockTableForCompilation, statementToString, toString
 
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, init, isInstanceOf, isSessionSchema, isSessionSchema, makeConstantAction, makeResultDescription, makeTableName, nodeHeader, optimize, parseQueryText, printLabel, printSubNodes, referencesSessionSchema, 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

MiscellaneousStatementNode

public MiscellaneousStatementNode()
Method Detail

activationKind

int activationKind()
Specified by:
activationKind in class StatementNode

generate

public void generate(ActivationClassBuilder acb,
                     MethodBuilder mb)
              throws StandardException
Generic generate code for all Misc statements that need activations.

Overrides:
generate in class QueryTreeNode
Parameters:
acb - The ActivationClassBuilder for the class being built
mb - the method for the execute() method to be built
Returns:
A compiled expression returning the RepCreatePublicationResultSet
Throws:
StandardException - Thrown on error

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


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