com.akiban.sql.parser
Class CallStatementNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.StatementNode
          extended by com.akiban.sql.parser.DMLStatementNode
              extended by com.akiban.sql.parser.CallStatementNode
All Implemented Interfaces:
Visitable

public class CallStatementNode
extends DMLStatementNode

An CallStatementNode represents a CALL statement. It is the top node of the query tree for that statement. A procedure call is very simple. CALL [.]() are either constants or parameter markers. This implementation assumes that no subqueries or aggregates can be in the argument list. A procedure is always represented by a MethodCallNode.


Field Summary
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
CallStatementNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 void init(Object methodCall)
          Initializer for a CallStatementNode.
 JavaToSQLValueNode methodCall()
           
 void printSubNodes(int depth)
          Prints the sub-nodes of this object.
 String statementToString()
           
 
Methods inherited from class com.akiban.sql.parser.DMLStatementNode
getResultSetNode
 
Methods inherited from class com.akiban.sql.parser.StatementNode
toString
 
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, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallStatementNode

public CallStatementNode()
Method Detail

init

public void init(Object methodCall)
Initializer for a CallStatementNode.

Overrides:
init in class DMLStatementNode
Parameters:
methodCall - The expression to "call"

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

statementToString

public String statementToString()
Specified by:
statementToString in class StatementNode

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

methodCall

public JavaToSQLValueNode methodCall()


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.