Method Summary |
|
protected void | addFilter(Filter f) |
public void | addOrderByValue(OrderByValue vi) Adds a new order by condition. |
protected void | addSelectedValue(Value vi, String alias) Add a Value to the selected elements. |
protected void | addTable(Table table) |
protected void | cleanup() Removes empty braces and handles conditions that are always false or true. |
protected Brace | endSubBrace() |
public long[] | getBriefcaseFilter() Returns a empty array if the filter is not set, or the id's of all briefcases to search in. |
protected String | getCacheKey() Compute a cache key for the statement. |
public String | getContentTypeFilter() Returns the contentname to filter by, or null if this filter option is not set. |
protected Brace | getCurrentBrace() |
public Filter | getFilter(Filter.TYPE t) Returns the desired filter, or null if the filter was not specified and has no
default value. |
public boolean | getIgnoreCase() |
public int | getMaxResultRows() Gets the maximum rows returned by the search. |
protected int | getNewBraceElementId() Generates a new statement scope unique brace id. |
public List<OrderByValue> | getOrderByValues() Returns the sort order elements. |
public int | getParserExecutionTime() Returns the execution time needed by the parser in ms. |
public Brace | getRootBrace() Returns the root brace. |
public SelectedValue | getSelectedValueByAlias(String alias) Returns the selected value matching the given alias, or null if no match can be found. |
public List<SelectedValue> | getSelectedValues() Returns the selected values in the correct order. |
public Table | getTableByAlias(String alias) Returns a table used by the statement by its alias. |
public Table | getTableByType(Table.TYPE type) |
public Table[] | getTables() Returns all tables that were specified in the 'from' section of the statement. |
public Type | getType() Returns the statements type. |
public VersionFilter | getVersionFilter() |
public boolean | hasContentTypeFilter() Returns true if the content type filter is set. |
public boolean | hasVersionFilter() |
public boolean | isDistinct() Returns if the statements resultset is distinct. |
public static FxStatement | parseSql(String query) Parses a statement. |
public String | printDebug() Generates a debug string. |
protected void | printDebug(StringBuffer sb, Brace br) Generates a debug string for the statement. |
protected void | setBriefcaseFilter(long[] bf) |
protected void | setContentTypeFilter(String contentName) |
protected void | setDistinct(boolean value) Sets the distinct condition of the statement. |
protected void | setIgnoreCase(boolean ignoreCase) |
protected void | setMaxResultRows(int maxResultRows) Sets the maximum rows returned by the search. |
protected void | setParserExecutionTime(int ms) |
public void | setSelectedValues(ArrayList<SelectedValue> values) Overrides the selected values in the given order. |
public void | setVersionFilter(VersionFilter filter) |
protected Brace | startSubBrace() |