|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HstQuery
Field Summary | |
---|---|
static int |
DEFAULT_LIMIT
The default limit that is used for a HstQuery. |
Method Summary | |
---|---|
void |
addOrderByAscending(String fieldNameAttribute)
Order the object found (ascending) |
void |
addOrderByDescending(String fieldNameAttribute)
Order the object found (descending) |
void |
addScopes(List<HippoBean> scopes)
add scopes to search in. |
void |
addScopes(javax.jcr.Node[] scopes)
add scopes to search in. |
Filter |
createFilter()
|
void |
excludeScopes(List<HippoBean> scopes)
add scopes to exclude from search. |
void |
excludeScopes(javax.jcr.Node[] scopes)
add scopes to exclude from search. |
HstQueryResult |
execute()
The actual execution of the HstQuery. |
BaseFilter |
getFilter()
|
int |
getLimit()
Returns the limit of the HstQuery. |
int |
getOffset()
Returns the offset of the HstQuery. |
String |
getQueryAsString(boolean skipDefaultOrderBy)
Returns the query as string. |
void |
setFilter(BaseFilter filter)
|
void |
setLimit(int limit)
Sets the limit of search results. |
void |
setOffset(int offset)
Sets the offset to start searching from. |
void |
setSkipInvalidScopes(boolean skipInvalidScopes)
Whether invalid scopes should be skipped, or if an invalid scope is found (jcr node is null, HippoBean is empty, etc), throw a QueryException. |
Field Detail |
---|
static final int DEFAULT_LIMIT
setLimit(int)
if you need to override this value.
Method Detail |
---|
void setFilter(BaseFilter filter)
BaseFilter getFilter()
Filter createFilter()
void setLimit(int limit)
limit
- String getQueryAsString(boolean skipDefaultOrderBy) throws QueryException
skipDefaultOrder
is
skipDefaultOrderBy
-
QueryException
- if we cannot build the query stringint getLimit()
DEFAULT_LIMIT
void setOffset(int offset)
-1
which means it is ignored. A negative offset will be ignored
offset
- int getOffset()
setOffset(int)
, the offset will be -1
and will be ignored
void addOrderByAscending(String fieldNameAttribute)
fieldNameAttribute
- the name of the field used to sort the search resultvoid addOrderByDescending(String fieldNameAttribute)
fieldNameAttribute
- the name of the field used to sort the search resultvoid addScopes(List<HippoBean> scopes)
scopes
- void addScopes(javax.jcr.Node[] scopes)
scopes
- void excludeScopes(List<HippoBean> scopes)
scopes
- void excludeScopes(javax.jcr.Node[] scopes)
scopes
- void setSkipInvalidScopes(boolean skipInvalidScopes)
true
, then still, when all scopes happen to be invalid, a QueryException is thrown
skipInvalidScopes
- is true
, invalid scopes are ignoredHstQueryResult execute() throws QueryException
HstQueryResult
QueryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |