Method Summary |
|
Join | addJoin(String firstTableName) |
void | addToChainedColumns(int columnIndex, String tableName, String columnName) |
QueryDefinition | addToFrom(String tableExpression) |
QueryDefinition | addToGroupBy(String columnExpression) |
QueryDefinition | addToHaving(String sql) |
QueryDefinition | addToOrderBy(String columnExpression, Query.OrderDirection direction) |
QueryDefinition | addToOrderBy(String columnExpression) |
QueryDefinition | addToSelect(String columnExpression) |
QueryDefinition | addToSelect(PersistentObjectFactory persistentObject) |
QueryDefinition | addToWhere(String sql) |
public QueryDefinition | addToWhere(PersistentObject persistentObject) |
QueryDefinition | andToHaving(String sql) |
QueryDefinition | andToWhere(String sql) |
public QueryDefinition | andToWhere(PersistentObject persistentObject) |
void | clearChainedColumns() |
CompoundColumnFilter | columnFilters() Returns current CompoundColumnFilter. |
QueryDefinition | compile(DatabasePolicy databasePolicy) |
QueryDefinition | compile() |
QueryDefinition | compileCall(DatabasePolicy databasePolicy) |
QueryDefinition | compileCall() |
void | decompile() Decompiles query which makes it mutable. |
String[] | extractNonUsedTableAliases() |
String | getCallBody() Returns call body which is internal part of call SQL:
"sp( ?, ? )", for instance. |
ChainedColumn[] | getChainedColumns() |
CompoundColumnFilter | getCompoundColumnFilter() |
DatabasePolicy | getDatabasePolicy() |
String[] | getForUpdateOf() |
String[] | getFrom() Represents SQL FROM clause. |
List | getFromAsList() |
String[] | getGroupBy() |
String | getHaving() |
Join | getJoin() |
int | getLimitMax() |
int | getLimitMin() |
CollectionFactory | getMultipleResultFactory() |
String[] | getOrderBy() |
String[] | getSelect() |
PersistentObjectFactory | getSingularResultFactory() Returns singular result factory. |
String | getSql() |
long | getTimeout() Gets lock timeout. |
Union | getUnion() |
Set | getUsedTableAliases() |
String | getWhere() |
boolean | hasChainedColumns() |
boolean | isAdHoc() |
boolean | isColumnFiltersEmpty() |
boolean | isCombinedInline() |
boolean | isCompiled() |
boolean | isDisconnectedPageQuery() Returns true if query is of Disconnected Page Query type. |
boolean | isDistinct() |
boolean | isExternallySetSql() |
boolean | isFunction() |
boolean | isLocked() |
boolean | isUnion() |
boolean | isUseColumnNames() |
boolean | isUseSelectStar() |
boolean | isWait() |
Join | newJoin(String firstTableName) |
void | nullifySingularResultFactory() |
QueryDefinition | orToHaving(String sql) |
QueryDefinition | orToWhere(String sql) |
public QueryDefinition | orToWhere(PersistentObject persistentObject) |
void | setCallBody(String callBody) Sets call body which is internal part of call SQL:
"sp( ?, ? )", for instance. |
void | setCombinedInline() |
void | setCompoundColumnFilter(CompoundColumnFilter columnFilter) |
void | setDisconnectedPageQuery(boolean disconnectedPageQuery) Sets flag if query is of Disconnected Page Query type. |
QueryDefinition | setDistinct(boolean distinct) |
void | setExcludedFields(Set excludeFields) Set set of fields excluded from being populated. |
QueryDefinition | setFrom(String[] from) Represents SQL FROM clause. |
void | setFunction(boolean function) |
QueryDefinition | setGroupBy(String[] groupBy) Represents SQL GROUP BY clause. |
QueryDefinition | setHaving(String sql) |
QueryDefinition | setJoin(Join join) |
QueryDefinition | setLimit(int min, int max) |
QueryDefinition | setLimit(int max) |
QueryDefinition | setLocked(LockType lockType) |
QueryDefinition | setLocked(LockType lockType, String[] forUpdateOf) |
void | setMultipleResultFactory(CollectionFactory multipleResultFactory) Sets multiple result factory. |
QueryDefinition | setOrderBy(String[] orderBy) Represents SQL ORDER BY clause. |
QueryDefinition | setOrderBy(List orderBy) Represents SQL ORDER BY clause. |
QueryDefinition | setSelect(String[] select) Represents SQL SELECT clause. |
QueryDefinition | setSelect(List select) Represents SQL SELECT clause. |
void | setSingularResultFactory(PersistentObjectFactory singularResultFactory) Sets singular result factory. |
void | setSqlInternal(String sql) |
void | setTimeout(long timeout) Sets lock timeout. |
void | setUseColumnNames(boolean useColumnNames) |
void | setUseSelectStar(boolean useSelectStar) Sets mode of select. |
QueryDefinition | setWhere(String sql) |
Union | union(QueryDefinition queryDefinition) Creates and adds Union - representation of UNION clause - to this query. |
Union | union(QueryDefinition queryDefinition, UnionMode mode) Creates and adds Union - representation of UNION clause - to this query. |
Union | unionAll(QueryDefinition queryDefinition) Creates and adds Union - representation of UNION clause - to this query. |
int | unionSize() |
void | unuseStarAndColumnNames() Unsets use of star in select clauses and names of PersistentObject columns when
retrieving from ResultSet. |
void | useStarAndColumnNames() Sets query to use star in select clauses and names of PersistentObject columns when
retrieving from ResultSet. |