com.akiban.sql.parser
Class FromList

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.QueryTreeNodeList<FromTable>
          extended by com.akiban.sql.parser.FromList
All Implemented Interfaces:
Visitable, Iterable<FromTable>

public class FromList
extends QueryTreeNodeList<FromTable>

A FromList represents the list of tables in a FROM clause in a DML statement. It extends QueryTreeNodeList.


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
FromList()
           
 
Method Summary
 void addFromTable(FromTable fromTable)
          Add a table to the FROM list.
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 void init(Object optimizeJoinOrder)
          Initializer for a FromList
 void init(Object optimizeJoinOrder, Object fromTable)
          Initializer for a FromList
 void setProperties(Properties props)
          Set the Properties list for this FromList.
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNodeList
add, add, addAll, clear, destructiveAddAll, get, getList, indexOf, isEmpty, iterator, printSubNodes, remove, remove, set, size
 
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, toString, treePrint, treePrint, treePrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FromList

public FromList()
Method Detail

init

public void init(Object optimizeJoinOrder)
Initializer for a FromList

Overrides:
init in class QueryTreeNode

init

public void init(Object optimizeJoinOrder,
                 Object fromTable)
          throws StandardException
Initializer for a FromList

Overrides:
init in class QueryTreeNode
Throws:
StandardException - Thrown on error

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class QueryTreeNodeList<FromTable>
Throws:
StandardException

addFromTable

public void addFromTable(FromTable fromTable)
                  throws StandardException
Add a table to the FROM list.

Parameters:
fromTable - A FromTable to add to the list
Throws:
StandardException - Thrown on error

setProperties

public void setProperties(Properties props)
                   throws StandardException
Set the Properties list for this FromList.

Throws:
StandardException - Thrown on error


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