net.aditsu.depeche
public interface DynamicQuery extends IQuery
Modifier and Type | Method and Description |
---|---|
DynamicQuery |
copy()
Returns a copy of this query, without any cached results
|
int |
count()
Counts the records matched by this query, without necessarily selecting them,
and returns the result as an int (for more than 2 billion records use
longCount() ) |
DynamicQuery |
desc(List<String> fields)
Adds the given fields (descending) to the list of fields to sort by, and returns a new query
|
DynamicQuery |
desc(String... fields)
Adds the given fields (descending) to the list of fields to sort by, and returns a new query
|
DynamicQuery |
distinct()
Adds the "DISTINCT" clause to the query, and returns a new query
|
DynamicQuery |
exclude(Condition cond)
Adds the negation of a condition to this query (using "AND" with an existing condition)
and returns a new query
|
DynamicQuery |
exclude(KeyInfo keyInfo,
Key key)
Adds a condition to NOT match a list of columns with a list of values, and returns a new query
|
DynamicQuery |
exclude(String name,
Serializable value)
Adds a condition that the column with the given name should NOT have the given value, and returns a new query
|
DynamicQuery |
exclude(String name,
String op,
Serializable value)
Adds a negative "name operator value" condition and returns a new query
|
DynamicQuery |
excludeIn(String name,
Collection<? extends Serializable> list)
Adds a negative "name IN (values)" condition and returns a new query
|
DynamicQuery |
field(String field,
String alias)
Adds "field AS alias" to the list of fields to select in each record, and returns a new query
|
DynamicQuery |
fields(List<String> fields)
Adds the given fields to the list of fields to select in each record, and returns a new query
|
DynamicQuery |
fields(List<String> fields,
List<String> aliases)
Adds the given fields with the given aliases to the list of fields to select in each record, and returns a new query
|
DynamicQuery |
fields(String... fields)
Adds the given fields to the list of fields to select in each record, and returns a new query
|
DynamicQuery |
filter(Condition cond)
Adds a condition to this query (using "AND" with an existing condition) and returns a new query
|
DynamicQuery |
filter(KeyInfo keyInfo,
Key key)
Adds a condition to match a list of columns with a list of values, and returns a new query
|
DynamicQuery |
filter(Record rec,
KeyInfo cols)
Adds a condition to match a list of columns with a list of corresponding values from a Record,
and returns a new query
|
DynamicQuery |
filter(Record rec,
String... cols)
Adds a condition to match a list of columns with a list of corresponding values from a Record,
and returns a new query
|
DynamicQuery |
filter(String name,
Serializable value)
Adds a condition that the column with the given name should have the given value, and returns a new query
|
DynamicQuery |
filter(String name,
String op,
Serializable value)
Adds a "name operator value" condition and returns a new query
|
DynamicQuery |
filterIn(String name,
Collection<? extends Serializable> list)
Adds a "name IN (values)" condition and returns a new query
|
DynamicQuery |
limit(long x)
Limits the number of records to select and returns a new query
|
long |
longCount()
Counts the records matched by this query, without necessarily selecting them,
and returns the result as a long
|
DynamicQuery |
offset(long x)
Sets the offset of the first record to select (i.e.
|
DynamicQuery |
order(List<String> fields)
Adds the given fields (ascending) to the list of fields to sort by, and returns a new query
|
DynamicQuery |
order(String... fields)
Adds the given fields (ascending) to the list of fields to sort by, and returns a new query
|
clearData, getColumn, getColumn, getColumn, getColumn, getColumnInfo, getLocalQuery, getOneRecord, getRecord, hasRun, select
DynamicQuery copy()
DynamicQuery filter(Condition cond)
DynamicQuery exclude(Condition cond)
DynamicQuery filter(String name, Serializable value)
DynamicQuery filter(KeyInfo keyInfo, Key key)
DynamicQuery filter(Record rec, KeyInfo cols)
DynamicQuery filter(Record rec, String... cols)
DynamicQuery exclude(String name, Serializable value)
DynamicQuery exclude(KeyInfo keyInfo, Key key)
DynamicQuery filter(String name, String op, Serializable value)
DynamicQuery exclude(String name, String op, Serializable value)
DynamicQuery filterIn(String name, Collection<? extends Serializable> list)
DynamicQuery excludeIn(String name, Collection<? extends Serializable> list)
DynamicQuery limit(long x)
DynamicQuery offset(long x)
DynamicQuery order(String... fields)
DynamicQuery order(List<String> fields)
DynamicQuery desc(String... fields)
DynamicQuery desc(List<String> fields)
DynamicQuery fields(String... fields)
DynamicQuery fields(List<String> fields)
DynamicQuery field(String field, String alias)
DynamicQuery fields(List<String> fields, List<String> aliases)
DynamicQuery distinct()
int count()
longCount()
)long longCount()