|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Query
Common interfaces for all supported queries. The idea is that some query
types MUST BE supported by the Entityhub. However some ReferencedSite and
Yard implementations may support additional query types.
| Method Summary | |
|---|---|
Query |
clone()
Clones the query. |
Integer |
getLimit()
Getter for the maximum number of results for this query. |
int |
getOffset()
Getter for the offset for the first result of this query. |
String |
getQueryType()
The type of the Query (e.g. |
void |
setLimit(Integer limit)
Setter for the maximum number of results or null if no
limit is defined. |
void |
setOffset(int offset)
Setter for the offset of the query. |
| Method Detail |
|---|
String getQueryType()
Class.getSimpleName() class object of the
Java Interface for the query type but with a
Character.toLowerCase(char) for the first character.Integer getLimit()
null if no limit
is defined. MUST never return a number <= 1void setLimit(Integer limit)
null if no
limit is defined.
limit - the limit as positive integer or null to define
that no limit is defined. Parsing a negative number results in setting
the limit to null.int getOffset()
< 0void setOffset(int offset)
< 0 MUST result in setting the offset to 0
offset - the offset, a positive natural number including 0.
Parsing a negative number results to setting the offset to 0Query clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||