public interface Query extends Cloneable
Site and
Yard implementations may support additional query types.| Modifier and Type | Method and Description |
|---|---|
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.
|
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 0offset - the offset, a positive natural number including 0.
Parsing a negative number results to setting the offset to 0Query clone()
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.