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

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.DMLStatementNode
              extended byorg.apache.derby.impl.sql.compile.ReadCursorNode
All Implemented Interfaces:
Visitable
Direct Known Subclasses:
CursorNode

abstract class ReadCursorNode
extends DMLStatementNode

A ReadCursorNode contains the logic to bind and generate a vanilla SELECT. This node is used for SELECT cursors

Author:
Jeff Lichtman

Field Summary
 
Fields inherited from class org.apache.derby.impl.sql.compile.DMLStatementNode
resultSet
 
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
(package private) ReadCursorNode()
           
 
Method Summary
 QueryTreeNode bind(DataDictionary dataDictionary)
          Bind this ReadCursorNode.
 void generate(ActivationClassBuilder acb, MethodBuilder mb)
          Do code generation for this ReadCursorNode
 java.lang.String statementToString()
           
 
Methods inherited from class org.apache.derby.impl.sql.compile.DMLStatementNode
accept, activationKind, bindExpressions, bindExpressionsWithTables, bindResultSetsWithTables, bindTables, generateParameterHolders, generateParameterValueSet, getResultSetNode, init, isAtomic, makeResultDescription, optimize, printSubNodes
 
Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode
generate, lockTableForCompilation, toString
 
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
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, makeConstantAction, makeTableName, needsSavepoint, nodeHeader, parseQueryText, printLabel, 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

ReadCursorNode

ReadCursorNode()
Method Detail

bind

public QueryTreeNode bind(DataDictionary dataDictionary)
                   throws StandardException
Bind this ReadCursorNode. This means looking up tables and columns and getting their types, and figuring out the result types of all expressions.

Overrides:
bind in class DMLStatementNode
Parameters:
dataDictionary - Namespace to bind against.
Returns:
The bound query tree
Throws:
StandardException - Thrown on error

generate

public void generate(ActivationClassBuilder acb,
                     MethodBuilder mb)
              throws StandardException
Do code generation for this ReadCursorNode

Overrides:
generate in class QueryTreeNode
Parameters:
acb - The ActivationClassBuilder for the class being built
mb - The method the generated code is to go into
Throws:
StandardException - Thrown on error

statementToString

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


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