com.akiban.sql.parser
Class CurrentOfNode
java.lang.Object
com.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.ResultSetNode
com.akiban.sql.parser.FromTable
com.akiban.sql.parser.CurrentOfNode
- All Implemented Interfaces:
- Visitable
public class CurrentOfNode
- extends FromTable
The CurrentOf operator is used by positioned DELETE
and UPDATE to get the current row and location
for the target cursor. The bind() operations for
positioned DELETE and UPDATE add a column to
the select list under the statement for the row location
accessible from this node.
This node is placed in the from clause of the select
generated for the delete or update operation. It acts
much like a FromBaseTable, using the information about
the target table of the cursor to provide information.
| Methods inherited from class com.akiban.sql.parser.QueryTreeNode |
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 |
CurrentOfNode
public CurrentOfNode()
init
public void init(Object correlationName,
Object cursor,
Object tableProperties)
- Description copied from class:
QueryTreeNode
- Initialize a query tree node.
- Overrides:
init in class QueryTreeNode
copyFrom
public void copyFrom(QueryTreeNode node)
throws StandardException
- Fill this node with a deep copy of the given node.
- Overrides:
copyFrom in class FromTable
- Throws:
StandardException
printSubNodes
public void printSubNodes(int depth)
- Prints the sub-nodes of this object. See QueryTreeNode.java for
how tree printing is supposed to work.
- Overrides:
printSubNodes in class ResultSetNode
- Parameters:
depth - The depth of this node in the tree
toString
public 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 FromTable
- Returns:
- This object as a String
getCursorName
public String getCursorName()
Copyright © 2013 Akiban Technologies, Inc. All rights reserved.