org.axiondb.engine.commands
public class AxionQueryContext extends Object
Version: $Revision: 1.13 $ $Date: 2005/12/20 18:32:28 $
Constructor Summary | |
---|---|
AxionQueryContext() |
Method Summary | |
---|---|
void | addAllSelectToResolvedSelect() |
void | addFrom(TableIdentifier table)
Adds a TableIdentifierto the list of tables being selected from.
|
void | addOrderBy(OrderNode orderby)
Appends an OrderNodeto the order by clause for this query
|
void | addSelect(Selectable column)
Adds a Selectableto the list of items being selected.
|
List | createLiteralList() |
boolean | foundAggregateFunction() |
String | getAliasName() |
boolean | getDistinct()
Indicates if the java.sql.ResultSetgenerated from this object will contain
distinct tuples.
|
FromNode | getFrom()
Gets the root FromNodefor the select statement. |
TableIdentifier | getFrom(int i)
Gets the i th table being selected. |
TableIdentifier[] | getFromArray() |
int | getFromCount()
Gets the number of tables being from. |
List | getGroupBy()
Gets Selectable in Group by clause. |
Selectable | getGroupBy(int i)
Gets Selectable in Group by clause. |
int | getGroupByCount()
Gets the number of Slectables group by in my query. |
Selectable | getHaving() |
Literal | getLimit() |
Literal | getOffset() |
List | getOrderBy()
Gets the List of OrderNodein my order by clause. |
OrderNode | getOrderBy(int i)
Gets the i th OrderNodein my order by clause. |
int | getOrderByCount()
Gets the number of OrderNodes in my query. |
RowDecorator | getParentRow() |
TableIdentifier[] | getParentTables() |
List | getResolvedSelect() |
RowIterator | getRows() |
List | getSelect() |
Selectable | getSelect(int i)
Gets the i th Selectablebeing selected. |
int | getSelectCount()
Gets the number of Selectables being selected. |
Selectable[] | getSelected() |
int | getTableCount() |
TableIdentifier[] | getTables() |
TableIdentifier | getTables(int i) |
Selectable | getWhere()
Returns the where tree for this query. |
boolean | isCorrelatedSubQuery() |
boolean | isExplain() |
boolean | isResolved() |
boolean | isTablePartOfSelect(TableIdentifier tid) |
void | setAliasName(String name) |
void | setCorrelatedSubQuery(boolean isCorrelatedSubQuery) |
void | setDistinct(boolean distinct)
Determines if the java.sql.ResultSetgenerated from this object will
contain distinct tuples (default is false).
|
void | setExplain(boolean explain) |
void | setFoundAggregateFunction(boolean found) |
void | setFrom(FromNode from)
Sets the root FromNodefor the select statement. |
void | setGroupBy(List groupby)
Sets the group by clause for this query.
|
void | setHaving(Selectable having) |
void | setLimit(Literal limit) |
void | setOffset(Literal offset) |
void | setOrderBy(List orderby)
Sets the order by clause for this query.
|
void | setParentRow(RowDecorator row) |
void | setParentTables(TableIdentifier[] tables) |
void | setResolved(boolean resolved) |
void | setResolvedSelect(List select) |
void | setRows(RowIterator rows) |
void | setSelect(int i, Selectable sel)
Sets the i th Selectablebeing selected.
|
void | setSelect(List columns) |
void | setSelected(Selectable[] selected) |
void | setTables(TableIdentifier[] tables) |
void | setWhere(Selectable where)
Sets the where tree for this query.
|
String | toString() |
Parameters: table a TableIdentifier
Throws: IllegalStateException if I have already been resolved
Parameters: orderby an OrderNodeto append
Throws: IllegalStateException if I have already been resolved
Parameters: column the Selectableto add
Throws: IllegalStateException if I have already been resolved
Returns: true
for distinct tuples
Parameters: i the zero-based index
Parameters: i the zero-based index
Parameters: i the zero-based index
Parameters: i the zero-based index
where tree
for this query. Clients should treat the
returned value as immutable.
Returns: the where tree
for this query, or null.
Parameters: distinct true for distinct tuples
Parameters: groupby a Listof Selectables.
Throws: IllegalStateException if I have already been resolved
Parameters: orderby a Listof OrderNodes.
Throws: IllegalStateException if I have already been resolved
Parameters: i the zero-based index sel the new Selectable
Throws: IllegalStateException if I have already been resolved
where tree
for this query.
Parameters: where a boolean valued Selectable
Throws: IllegalStateException if I have already been resolved