public class AxionQueryContext
extends java.lang.Object
| Constructor and Description |
|---|
AxionQueryContext() |
| Modifier and Type | Method and Description |
|---|---|
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. |
java.util.List |
createLiteralList() |
boolean |
foundAggregateFunction() |
java.lang.String |
getAliasName() |
boolean |
getDistinct()
Indicates if the
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.
|
java.util.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() |
java.util.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() |
java.util.List |
getResolvedSelect() |
RowIterator |
getRows() |
java.util.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 treefor this query. |
boolean |
isCorrelatedSubQuery() |
boolean |
isExplain() |
boolean |
isResolved() |
boolean |
isTablePartOfSelect(TableIdentifier tid) |
void |
setAliasName(java.lang.String name) |
void |
setCorrelatedSubQuery(boolean isCorrelatedSubQuery) |
void |
setDistinct(boolean distinct)
Determines if the
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(java.util.List groupby)
Sets the group by clause for this query.
|
void |
setHaving(Selectable having) |
void |
setLimit(Literal limit) |
void |
setOffset(Literal offset) |
void |
setOrderBy(java.util.List orderby)
Sets the order by clause for this query.
|
void |
setParentRow(RowDecorator row) |
void |
setParentTables(TableIdentifier[] tables) |
void |
setResolved(boolean resolved) |
void |
setResolvedSelect(java.util.List select) |
void |
setRows(RowIterator rows) |
void |
setSelect(int i,
Selectable sel)
Sets the i th
Selectablebeing selected. |
void |
setSelect(java.util.List columns) |
void |
setSelected(Selectable[] selected) |
void |
setTables(TableIdentifier[] tables) |
void |
setWhere(Selectable where)
Sets the
where treefor this query. |
java.lang.String |
toString() |
public void addAllSelectToResolvedSelect()
public void addFrom(TableIdentifier table)
TableIdentifierto the list of tables being selected from.table - a TableIdentifierjava.lang.IllegalStateException - if I have already been resolvedpublic void addOrderBy(OrderNode orderby)
OrderNodeto the order by clause for this queryorderby - an OrderNodeto appendjava.lang.IllegalStateException - if I have already been resolvedpublic void addSelect(Selectable column)
Selectableto the list of items being selected.column - the Selectableto addjava.lang.IllegalStateException - if I have already been resolvedpublic boolean foundAggregateFunction()
public java.lang.String getAliasName()
public boolean getDistinct()
ResultSetgenerated from this object will contain
distinct tuples.true for distinct tuplespublic TableIdentifier getFrom(int i)
i - the zero-based indexpublic TableIdentifier[] getFromArray()
public int getFromCount()
public java.util.List getGroupBy()
public Selectable getGroupBy(int i)
i - the zero-based indexpublic int getGroupByCount()
Slectables group by in my query.public Literal getLimit()
public Literal getOffset()
public java.util.List getOrderBy()
OrderNodein my order by clause.public OrderNode getOrderBy(int i)
OrderNodein my order by clause. Clients
should treat the returned value as immutable.i - the zero-based indexpublic int getOrderByCount()
OrderNodes in my query.public RowDecorator getParentRow()
public TableIdentifier[] getParentTables()
public java.util.List getResolvedSelect()
public RowIterator getRows()
public java.util.List getSelect()
public Selectable getSelect(int i)
Selectablebeing selected. Clients should
treat the returned value as immutable.i - the zero-based indexpublic int getSelectCount()
Selectables being selected.public Selectable[] getSelected()
public TableIdentifier[] getTables()
public TableIdentifier getTables(int i)
public int getTableCount()
public Selectable getWhere()
where treefor this query. Clients should treat the
returned value as immutable.where treefor this query, or null.public Selectable getHaving()
public boolean isCorrelatedSubQuery()
public boolean isExplain()
public boolean isResolved()
public boolean isTablePartOfSelect(TableIdentifier tid)
public void setAliasName(java.lang.String name)
public void setCorrelatedSubQuery(boolean isCorrelatedSubQuery)
public void setDistinct(boolean distinct)
ResultSetgenerated from this object will
contain distinct tuples (default is false).distinct - true for distinct tuplespublic void setExplain(boolean explain)
public void setFoundAggregateFunction(boolean found)
public void setGroupBy(java.util.List groupby)
groupby - a Listof Selectables.java.lang.IllegalStateException - if I have already been resolvedpublic void setLimit(Literal limit)
public void setOffset(Literal offset)
public void setOrderBy(java.util.List orderby)
orderby - a Listof OrderNodes.java.lang.IllegalStateException - if I have already been resolvedpublic void setParentRow(RowDecorator row)
public void setParentTables(TableIdentifier[] tables)
public void setResolved(boolean resolved)
public void setResolvedSelect(java.util.List select)
public void setRows(RowIterator rows)
public void setSelect(int i,
Selectable sel)
Selectablebeing selected.i - the zero-based indexsel - the new Selectablejava.lang.IllegalStateException - if I have already been resolvedpublic void setSelect(java.util.List columns)
public void setSelected(Selectable[] selected)
public void setTables(TableIdentifier[] tables)
public void setWhere(Selectable where)
where treefor this query.where - a boolean valued Selectablejava.lang.IllegalStateException - if I have already been resolvedpublic void setHaving(Selectable having)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List createLiteralList()