public interface HstQuery
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LIMIT
The default limit that is used for a HstQuery.
|
Modifier and Type | Method and Description |
---|---|
void |
addOrderByAscending(String fieldNameAttribute)
Order the object found case sensitive ascending
|
void |
addOrderByAscendingCaseInsensitive(String fieldNameAttribute)
Order the object found case insensitive ascending
|
void |
addOrderByDescending(String fieldNameAttribute)
Order the object found case sensitive descending
|
void |
addOrderByDescendingCaseInsensitive(String fieldNameAttribute)
Order the object found case insensitive 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)
Deprecated.
since 2.25.02 : skipInvalidScopes is not used any more. You can remove invoking this method
|
static final int DEFAULT_LIMIT
setLimit(int)
if you need to override this value.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 ignoredoffset
- int getOffset()
setOffset(int)
, the offset will be -1
and will be ignoredvoid addOrderByAscending(String fieldNameAttribute)
fieldNameAttribute
- the name of the field used to sort the search resultvoid addOrderByAscendingCaseInsensitive(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 addOrderByDescendingCaseInsensitive(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
- @Deprecated void setSkipInvalidScopes(boolean skipInvalidScopes)
true
, then still, when all scopes happen to be invalid, a QueryException is thrownskipInvalidScopes
- is true
, invalid scopes are ignoredHstQueryResult execute() throws QueryException
HstQueryResult
QueryException
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.