public interface SearchQuery extends Cacheable
This corresponds to a SELECT query in SQL syntax.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_NUMBER
Default maxNumber value, corresponds to no maximum.
|
static int |
DEFAULT_OFFSET
Default offset value, corresponds to no offset.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this query to the specified object.
|
Constraint |
getConstraint()
Gets the constraints on the search results.
|
List<StepField> |
getFields()
Gets the stepfields in the search request.
|
int |
getMaxNumber()
Gets the maximum number of results to be returned, or -1 if the number of results to be returned is unlimited.
|
int |
getOffset()
Gets the (zerobased) offset in the list of results, of the first result to return.
|
List<SortOrder> |
getSortOrders()
Gets the SortOrder objects in the order they are to be applied.
|
List<Step> |
getSteps()
Gets the steps in the search request.
|
int |
hashCode() |
boolean |
isAggregating()
Tests if this is an aggregating query, i.e.
|
boolean |
isDistinct()
Tests if the search request is to return distinct results.
|
boolean |
markUsed() |
String |
toString()
Returns a string representation of this SearchQuery.
|
getCachePolicy, setCachePolicystatic final int DEFAULT_MAX_NUMBER
getMaxNumber(),
Constant Field Valuesstatic final int DEFAULT_OFFSET
getOffset(),
Constant Field Valuesboolean isDistinct()
This corresponds to the use of "DISTINCT" in SQL SELECT-syntax .
boolean isAggregating()
List<Step> getSteps()
This corresponds to the tables in SQL SELECT-syntax.
List<StepField> getFields()
This corresponds to the fields in SQL SELECT-syntax.
Constraint getConstraint()
This corresponds to (part of) the constraints in the WHERE-clause in SQL SELECT-syntax.
int getMaxNumber()
Note: limiting the number of results may not be supported by the database layer.
int getOffset()
Note: skipping results may not be supported by the database layer.
List<SortOrder> getSortOrders()
This corresponds to the ORDER BY clause in SQL SELECT syntax.
boolean equals(Object obj)
true if and only if the argument is a non-null
SearchQuery object representing the same query.String toString()
isDistinct()
getSteps()
getFields()
getConstraint()
getSortOrders()
getMaxNumber()
getOffset()
boolean markUsed()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}