com.completex.objective.components.persistency.core .Union All known Subclasses: com.completex.objective.components.persistency.core.impl.query .UnionImpl ,Union public interface Union (Code) Represents SQL union query. Generally it is not thread safe.
author: Gennady Krizhevsky
addToOrderBy Union addToOrderBy(String columnExpression, Query.OrderDirection direction) (Code) Adds column expression to the order by clause. All the expressions will be used when
compiling separated by commas
Parameters: columnExpression - Parameters: direction - - ascending or descending self
addToOrderBy Union addToOrderBy(String columnExpression) (Code) Adds column expression to the order by clause with default sort direction.
Parameters: columnExpression - self
compile Union compile(DatabasePolicy databasePolicy) (Code) Decompiles union. After that it becomes immutable until decompile() is used.
Parameters: databasePolicy - self
decompile Union decompile() (Code) Decompiles union allowing for the modifications
self
getOrderBy String [] getOrderBy() (Code) union's Order By columns
getUnionEntry UnionEntry getUnionEntry(int index) (Code) Parameters: index - index-th union partthrows: IndexOutOfBoundsException - if the index is out of range (index< 0 || index >= size()).
hasEntries boolean hasEntries() (Code) true if it contains any sub-queries (same as unionSize() > 0)
hasOrderBy boolean hasOrderBy() (Code) true if there is order by clause
isCompiled boolean isCompiled() (Code) true if Union is compiled
setOrderBy Union setOrderBy(String [] orderBy) (Code) Sets order by clause that has union scope rather than query one
Parameters: orderBy - self
setOrderBy Union setOrderBy(List orderBy) (Code) Sets array of column expressions to the order by clause. All the expressions will be used when
compiling separated by commas
Parameters: orderBy - self
unionAll Union unionAll(QueryDefinition query) (Code) Adds another query to the union with "UNION ALL" clause
Parameters: query - self
unionSize int unionSize() (Code) number of union sub-queries