Method Summary |
|
public void | addAllJoins(Collection coll) Adds all joins in the collection to our list. |
public void | addJoin(Join join) Adds a join to the list of joins used by this query. |
public void | addSort(Selectable sel, int order) Adds a sort order for the specified selectable. |
public void | clearJoins() Removes all joins in the collection from our list. |
public void | clearSorts() Removes all sorts from our list. |
public boolean | containsReferenceTo(Parameter p) Returns true if the specified parameter exists within this
query's where clause. |
public void | findSelectablesUsed() Builds collections of the selectables actually used in the report. |
public String | getEditableWhereClause() Returns the where clause fit for human consumption. |
public int | getNumSelectables() Returns the number of selectables in the query. |
public String | getWhereClause() Returns the raw where clause string; may be null . |
public int | indexOfSelectable(Selectable selectable) Returns the index of the specified selectable. |
public Iterator | joins() Returns an iterator over all the joins used by this query. |
public void | reloadColumns(DataSource dataSource) Called from DataSource.reloadColumns , this method gives the
query source a chance to tell its ancillary objects (such as joins and
the sort) to reload selectable objects.
This is necessary, for example, after a SQL database data source has
reloaded all of its table and column information. |
public void | removeJoin(Join join) Removes a join from the list of joins used by this query. |
public void | removeSort(Selectable sel) Removes a sorting from the list. |
public Iterator | selectables() Returns an iterator over all selectables. |
public void | setEditableWhereClause(String newWhereClause) Sets the where clause (may be null ). |
public void | setWhereClause(String newWhereClause) Sets the where clause (may be null ). |
public int | sortOrderOf(Selectable sel) Returns the sort order (SORT_DESCENDING ,
SORT_ASCENDING , or SORT_UNDEFINED ) of the
specified selectable. |
public Iterator | sortedSelectables() Returns an iterator over all the sorted selectables used by this query. |
protected void | writeExtras(XMLWriter out) This method exists so subclasses can write out extra information. |
public void | writeXML(XMLWriter out) Writes this query as an XML tag. |