|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface SearchQuery
Encapsulates a request for a search of the object cloud.
This corresponds to a SELECT query in SQL syntax.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_NUMBER
Default maxNumber value, corresponds to no maximum. |
static int |
DEFAULT_OFFSET
Default offset value, corresponds to no offset. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.mmbase.cache.Cacheable |
|---|
getCachePolicy, setCachePolicy |
| Field Detail |
|---|
static final int DEFAULT_MAX_NUMBER
getMaxNumber(),
Constant Field Valuesstatic final int DEFAULT_OFFSET
getOffset(),
Constant Field Values| Method Detail |
|---|
boolean 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.
equals in class Objectobj - The object to compare with.
true if the objects are equal,
false otherwise.int hashCode()
hashCode in class ObjectString toString()
isDistinct()
getSteps()
getFields()
getConstraint()
getSortOrders()
getMaxNumber()
getOffset()
toString in class Objectboolean markUsed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||