org.apache.derby.impl.sql.compile
Class OrderedColumnList
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.QueryTreeNodeVector
org.apache.derby.impl.sql.compile.OrderedColumnList
- All Implemented Interfaces:
- Visitable
- Direct Known Subclasses:
- GroupByList, OrderByList
- public abstract class OrderedColumnList
- extends QueryTreeNodeVector
List of OrderedColumns
- Author:
- Jamie
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
bind, convertDefaultNode, debugFlush, debugPrint, executeSchemaName, executeStatementName, formatNodeString, foundString, generate, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getSPSName, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isSessionSchema, isSessionSchema, makeConstantAction, makeResultDescription, makeTableName, needsSavepoint, nodeHeader, optimize, parseQueryText, printLabel, printSubNodes, referencesSessionSchema, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, treePrint, treePrint, verifyClassExist |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OrderedColumnList
public OrderedColumnList()
getColumnOrdering
public IndexColumnOrder[] getColumnOrdering()
- Get an array of ColumnOrderings to pass to the store
size
public final int size()
elementAt
public QueryTreeNode elementAt(int index)
addElement
public final void addElement(QueryTreeNode qt)
removeElementAt
final void removeElementAt(int index)
removeElement
final void removeElement(QueryTreeNode qt)
remove
final java.lang.Object remove(int index)
indexOf
final int indexOf(QueryTreeNode qt)
setElementAt
final void setElementAt(QueryTreeNode qt,
int index)
destructiveAppend
public void destructiveAppend(QueryTreeNodeVector qtnv)
nondestructiveAppend
public void nondestructiveAppend(QueryTreeNodeVector qtnv)
removeAllElements
final void removeAllElements()
insertElementAt
final void insertElementAt(QueryTreeNode qt,
int index)
toString
public java.lang.String toString()
- Format this list as a string
We can simply iterate through the list. Note each list member
is a QueryTreeNode, and so should have its specialization of
toString defined.
- Overrides:
toString
in class QueryTreeNode
- Returns:
- This list formatted as a String
accept
public Visitable accept(Visitor v)
throws StandardException
- Accept a visitor, and call v.visit()
on child nodes as necessary.
- Specified by:
accept
in interface Visitable
- Overrides:
accept
in class QueryTreeNode
- Parameters:
v
- the visitor
- Throws:
StandardException
- on error
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.