|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
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 |
getSortOrders()
Gets the SortOrder objects in the order they are to be applied. |
List |
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. |
String |
toString()
Returns a string representation of this SearchQuery. |
| Field Detail |
public static final int DEFAULT_MAX_NUMBER
getMaxNumber(),
Constant Field Valuespublic static final int DEFAULT_OFFSET
getOffset(),
Constant Field Values| Method Detail |
public boolean isDistinct()
This corresponds to the use of "DISTINCT" in SQL SELECT-syntax .
public boolean isAggregating()
public List getSteps()
This corresponds to the tables in SQL SELECT-syntax.
public List getFields()
This corresponds to the fields in SQL SELECT-syntax.
public Constraint getConstraint()
This corresponds to (part of) the constraints in the WHERE-clause in SQL SELECT-syntax.
public int getMaxNumber()
Note: limiting the number of results may not be supported by the database layer.
public int getOffset()
Note: skipping results may not be supported by the database layer.
public List getSortOrders()
This corresponds to the ORDER BY clause in SQL SELECT syntax.
public boolean equals(Object obj)
true if and only if the argument is a non-null
SearchQuery object representing the same query.
obj - The object to compare with.
true if the objects are equal,
false otherwise.public int hashCode()
public String toString()
isDistinct()
getSteps()
getFields()
getConstraint()
getSortOrders()
getMaxNumber()
getOffset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||