Method Summary |
|
Query | addAllParameters(Parameters parameters) |
Query | addAllParameters(int index, Parameters parameters) |
Query | addAllParameters(Object[] values) |
void | addChild(Link link) |
Join | addJoin(String firstTableName) |
Query | addParameter(Object parameter) |
Query | addParameter(ColumnType type, Object parameter) |
Query | addParametersArray(Parameters[] parameters) |
Query | addToChainedColumns(int columnIndex, String tableName, String columnName) |
Query | addToFrom(String tableExpression) |
Query | addToGroupBy(String columnExpression) |
Query | addToHaving(String sql) |
Query | addToOrderBy(String columnExpression, OrderDirection direction) |
Query | addToOrderBy(String columnExpression) |
Query | addToSelect(String columnExpression) |
Query | addToSelect(PersistentObjectFactory persistentObject) |
Query | addToWhere(String sql) |
Query | addToWhere(PersistentObject persistentObject) Adds SQL fragment to WHERE clause based on PersistentObject values which are joined by "AND".
Only placeholders are added to the query statement. |
Query | addToWhere(PersistentObject persistentObject, boolean addParameters) Adds SQL fragment to WHERE clause based on PersistentObject values which are joined by "AND".
Parameters: persistentObject - Parameters: addParameters - if true then not only placeholders are added to the query statement butQuery.addAllParameters(persistentObject.toParameters()) is issued internallyto add the parameters.Make sure that all the paramters that are supposed to go before these paramters are set. |
Query | addToWhere(Parameter parameter) Adds parameter placeholder to WHERE clause and adds parameter to the query. |
Query | andToHaving(String sql) |
Query | andToWhere(String sql) |
Query | andToWhere(PersistentObject persistentObject) Adds SQL fragment to WHERE clause based on PersistentObject values which are joined by "AND"
and prepended with " AND ".
Only placeholders are added to the query statement. |
Query | andToWhere(PersistentObject persistentObject, boolean addParameters) Adds SQL fragment to WHERE clause based on PersistentObject values which are joined by "AND"
and prepended with " AND ".
Parameters: persistentObject - Parameters: addParameters - if true then not only placeholders are added to the query statement butQuery.addAllParameters(persistentObject.toParameters()) is issued internallyto add the parameters.Make sure that all the paramters that are supposed to go before these paramters are set. |
String | between(String value1, String value2) |
Link | child(String name) Returns child link by name. |
void | clearChainedColumns() |
Object | clone() |
Parameters[] | collectInnerUnionParameters() Returns array of UNION sub-query parameters. |
Query | compile(DatabasePolicy databasePolicy) |
Query | compile() |
void | decompile() |
QueryDefinition.ChainedColumn[] | getChainedColumns() |
Link | getChild(String name) |
Query | getChildQuery(String childName) |
String[] | getForUpdateOf() |
String[] | getFrom() Represents SQL FROM clause. |
List | getFromAsList() Represents SQL FROM clause. |
String[] | getGroupBy() |
String | getHaving() |
Join | getJoin() |
int | getLimitMin() |
String[] | getOrderBy() |
Parameters | getParameters() |
String | getResolvedSql() |
String[] | getSelect() |
long | getTimeout() Gets lock timeout. |
String | getWhere() |
boolean | hasChainedColumns() |
boolean | hasChildren() |
boolean | isCompiled() |
boolean | isDistinct() |
boolean | isLocked() |
boolean | isUseSelectStar() |
boolean | isWait() |
LinkIterator | linkIterator() |
String | lower(String value) |
Join | newJoin(String firstTableName) |
Query | newNonCompiledQuery() |
Query | orToHaving(String sql) |
Query | orToWhere(String sql) |
Query | orToWhere(PersistentObject persistentObject) Adds SQL fragment to WHERE clause based on PersistentObject values which are joined by "AND"
and prepended with " OR ".
Only placeholders are added to the query statement. |
Query | orToWhere(PersistentObject persistentObject, boolean addParameters) Adds SQL fragment to WHERE clause based on PersistentObject values which are joined by "AND"
and prepended with " OR ".
Parameters: persistentObject - Parameters: addParameters - if true then not only placeholders are added to the query statement butQuery.addAllParameters(persistentObject.toParameters()) is issued internallyto add the parameters.Make sure that all the paramters that are supposed to go before these paramters are set. |
String | rlike(String expression, String pattern, boolean matches) |
Query | setDistinct(boolean distinct) |
Query | setFrom(String[] from) Represents SQL FROM clause. |
Query | setGroupBy(String[] groupBy) Represents SQL GROUP BY clause. |
Query | setHaving(String sql) |
void | setInlineMode(String childName, Link.InlineMode joinMode) |
Query | setJoin(Join join) |
Query | setLimit(int min, int max) |
Query | setLimit(int max) |
Query | setLocked(LockType lockType) |
Query | setLocked(LockType lockType, String[] forUpdateOf) |
Query | setOrderBy(String[] orderBy) Represents SQL ORDER BY clause. |
Query | setParameters(Object[] parameters) |
Query | setParameters(Parameters parameters) |
Query | setSelect(String[] select) Represents SQL SELECT clause. |
void | setTimeout(long timeout) Sets lock timeout. |
void | setUseSelectStar(boolean useSelectStar) Sets mode of select. |
Query | setWhere(String sql) |
String | singleQuote(String value) |
Object | toKey() |
Union | union(Query query) Creates and adds Union - representation of UNION clause - to this query. |
Union | union(Query query, UnionMode mode) Creates and adds Union - representation of UNION clause - to this query. |
Union | unionAll(Query query) Creates and adds Union - representation of UNION clause - to this query. |
void | unuseStarAndColumnNames() Unsets use of star in select clauses and names of PersistentObject columns when
retrieving from ResultSet. |
String | upper(String value) |
void | useStarAndColumnNames() Sets query to use star in select clauses and names of PersistentObject columns when
retrieving from ResultSet. |