public class CursorNode extends DMLStatementNode
Modifier and Type | Class and Description |
---|---|
static class |
CursorNode.UpdateMode |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
CursorNode() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
ValueNode |
getFetchFirstClause() |
java.lang.String |
getName() |
ValueNode |
getOffsetClause() |
OrderByList |
getOrderByList() |
IsolationLevel |
getScanIsolationLevel() |
java.util.List<java.lang.String> |
getUpdatableColumns()
Return collection of names from the FOR UPDATE OF List
|
CursorNode.UpdateMode |
getUpdateMode() |
void |
init(java.lang.Object statementType,
java.lang.Object resultSet,
java.lang.Object name,
java.lang.Object orderByList,
java.lang.Object offset,
java.lang.Object fetchFirst,
java.lang.Object updateMode,
java.lang.Object updatableColumns)
Initializer for a CursorNode
|
void |
printSubNodes(int depth)
Prints the sub-nodes of this object.
|
void |
setScanIsolationLevel(IsolationLevel isolationLevel) |
java.lang.String |
statementToString() |
java.lang.String |
toString()
Convert this object to a String.
|
getResultSetNode, init
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
public void init(java.lang.Object statementType, java.lang.Object resultSet, java.lang.Object name, java.lang.Object orderByList, java.lang.Object offset, java.lang.Object fetchFirst, java.lang.Object updateMode, java.lang.Object updatableColumns)
init
in class QueryTreeNode
statementType
- Type of statement (SELECT, UPDATE, INSERT)resultSet
- A ResultSetNode specifying the result set for
the cursorname
- The name of the cursor, null if no nameorderByList
- The order by list for the cursor, null if no
order by listoffset
- The value of a fetchFirst
- The value of a updateMode
- The user-specified update mode for the cursor,
for example, CursorNode.READ_ONLYupdatableColumns
- The list of updatable columns specified by
the user in the FOR UPDATE clause, null if no
updatable columns specified. May only be
provided if the updateMode parameter is
CursorNode.UPDATE.public void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class DMLStatementNode
StandardException
public void setScanIsolationLevel(IsolationLevel isolationLevel)
public java.lang.String toString()
toString
in class StatementNode
public java.lang.String statementToString()
statementToString
in class StatementNode
public void printSubNodes(int depth)
printSubNodes
in class DMLStatementNode
depth
- The depth of this node in the treepublic java.lang.String getName()
public OrderByList getOrderByList()
public ValueNode getOffsetClause()
public ValueNode getFetchFirstClause()
public CursorNode.UpdateMode getUpdateMode()
public IsolationLevel getScanIsolationLevel()
public java.util.List<java.lang.String> getUpdatableColumns()
Copyright © 2013. All Rights Reserved.