com.akiban.sql.parser
Class DMLModStatementNode
java.lang.Object
com.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.StatementNode
com.akiban.sql.parser.DMLStatementNode
com.akiban.sql.parser.DMLModStatementNode
- All Implemented Interfaces:
- Visitable
- Direct Known Subclasses:
- DeleteNode, InsertNode, UpdateNode
public abstract class DMLModStatementNode
- extends DMLStatementNode
A DMLStatement for a table modification: to wit, INSERT
UPDATE or DELETE.
| 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 |
targetVTI
protected FromVTI targetVTI
targetTableName
protected TableName targetTableName
returningColumnList
protected ResultColumnList returningColumnList
DMLModStatementNode
public DMLModStatementNode()
init
public void init(Object resultSet)
- Initializer for a DMLModStatementNode -- delegate to DMLStatementNode
- Overrides:
init in class DMLStatementNode
- Parameters:
resultSet - A ResultSetNode for the result set of the
DML statement
init
public void init(Object resultSet,
Object statementType)
- Initializer for a DMLModStatementNode -- delegate to DMLStatementNode
- Overrides:
init in class QueryTreeNode
- Parameters:
resultSet - A ResultSetNode for the result set of the
DML statementstatementType - used by nodes that allocate a DMLMod directly
(rather than inheriting it).
copyFrom
public void copyFrom(QueryTreeNode node)
throws StandardException
- Fill this node with a deep copy of the given node.
- Overrides:
copyFrom in class DMLStatementNode
- Throws:
StandardException
isAtomic
public boolean isAtomic()
- INSERT/UPDATE/DELETE are always atomic.
- Returns:
- true
getTargetTableName
public TableName getTargetTableName()
getReturningList
public ResultColumnList getReturningList()
setReturningList
public void setReturningList(ResultColumnList returningColumnList)
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 DMLStatementNode
- Parameters:
depth - The depth of this node in the tree
Copyright © 2013 Akiban Technologies, Inc. All rights reserved.