|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.QueryTreeNodeList<ResultColumn>
com.akiban.sql.parser.ResultColumnList
public class ResultColumnList
A ResultColumnList is the target list of a SELECT, INSERT, or UPDATE.
ResultColumn| Field Summary | |
|---|---|
protected boolean |
forUpdate
|
| Fields inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX |
| Constructor Summary | |
|---|---|
ResultColumnList()
|
|
| Method Summary | |
|---|---|
void |
addResultColumn(ResultColumn resultColumn)
Add a ResultColumn (at this point, ResultColumn or AllResultColumn) to the list |
void |
appendResultColumns(ResultColumnList resultColumns,
boolean destructiveCopy)
Append a given ResultColumnList to this one, resetting the virtual column ids in the appended portion. |
String[] |
getColumnNames()
Get an array of strings for all the columns in this RCL. |
ResultColumnList |
getJoinColumns(ResultColumnList joinColumns)
Get the join columns from this list. |
ResultColumn |
getOrderByColumn(int position)
Get a ResultColumn from a column position (1-based) in the list, null if out of range (for order by). |
ResultColumn |
getResultColumn(int position)
Get a ResultColumn from a column position (1-based) in the list |
ResultColumn |
getResultColumn(String columnName)
Get a ResultColumn that matches the specified columnName. |
protected void |
markInitialSize()
|
void |
removeJoinColumns(ResultColumnList joinColumns)
Remove the columns which are join columns (in the joinColumns RCL) from this list. |
String |
toString()
Convert this object to a String. |
| Methods inherited from class com.akiban.sql.parser.QueryTreeNodeList |
|---|
add, add, addAll, clear, copyFrom, 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, 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 |
| Field Detail |
|---|
protected boolean forUpdate
| Constructor Detail |
|---|
public ResultColumnList()
| Method Detail |
|---|
public void addResultColumn(ResultColumn resultColumn)
resultColumn - The ResultColumn to add to the list
public void appendResultColumns(ResultColumnList resultColumns,
boolean destructiveCopy)
resultColumns - The ResultColumnList to be appendeddestructiveCopy - Whether or not this is a destructive copy
from resultColumnspublic ResultColumn getResultColumn(int position)
position - The ResultColumn to get from the list (1-based)
public ResultColumn getOrderByColumn(int position)
position - The ResultColumn to get from the list (1-based)
public ResultColumn getResultColumn(String columnName)
columnName - The ResultColumn to get from the listmarkIfReferenced - True if we should mark this column as referenced.
public String[] getColumnNames()
public void removeJoinColumns(ResultColumnList joinColumns)
joinColumns - The list of join columns
public ResultColumnList getJoinColumns(ResultColumnList joinColumns)
throws StandardException
joinColumns - A list of the join columns.
StandardExceptionprotected void markInitialSize()
public String toString()
toString in class QueryTreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||