|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.criteria.Criteria
public abstract class Criteria
Nested Class Summary | |
---|---|
static class |
Criteria.NonBindingOverrideFilter
This is the type of a filter value when the override for that filter does not define any query parameter. |
static class |
Criteria.Restriction
Apply a restriction to reduce the cost of the Criteria -based query generation and execution routines. |
static class |
Criteria.Type
|
Field Summary | |
---|---|
protected Map<String,String> |
filterOverrides
|
protected PageControl |
pageControlOverrides
|
protected Map<String,String> |
sortOverrides
|
Constructor Summary | |
---|---|
Criteria()
|
Method Summary | |
---|---|
void |
addRequiredPermissions(Permission... requiredPermissions)
|
protected void |
addSortField(String fieldName)
|
void |
clearPaging()
|
String |
getAlias()
|
String |
getJPQLFilterOverride(String fieldName)
|
String |
getJPQLSortOverride(String fieldName)
|
List<String> |
getOrderingFieldNames()
|
PageControl |
getPageControlOverrides()
|
Integer |
getPageNumber()
|
Integer |
getPageSize()
|
abstract Class<?> |
getPersistentClass()
|
List<Permission> |
getRequiredPermissions()
|
Criteria.Restriction |
getRestriction()
|
String |
getSearchExpression()
|
boolean |
hasCustomizedSorting()
By default, the ordering fields are automatically prepend with the alias of entity that this criteria object wraps. |
boolean |
isCaseSensitive()
|
boolean |
isFiltersOptional()
|
boolean |
isInventoryManagerRequired()
subclasses should override as necessary |
boolean |
isSecurityManagerRequired()
subclasses should override as necessary |
boolean |
isStrict()
|
void |
setCaseSensitive(boolean caseSensitive)
If set to true, string-based filters will use case-sensitive matching; Default is 'false', which means results will match case-insensitively |
void |
setFiltersOptional(boolean filtersOptional)
If set to true, then results will come back if they match ANY filter; Default is 'false', which means results must match all set filters. |
void |
setPageControl(PageControl pageControl)
If the pageControl is set, then this criteria object will completely ignore any calls made to setPaging(pageNumber, pageSize) as well as addSortField(fieldName), which is useful from a server-side calling context where the PageControl object will already have been created for you by the extensions at the JSF layer. |
void |
setPaging(int pageNumber,
int pageSize)
|
void |
setRestriction(Criteria.Restriction restriction)
By default, two queries will be generated for this Criteria: one which fetches the requested page/subset of entity results, and one which fetches the total cardinality of the result set. |
void |
setSearchExpression(String searchExpression)
|
void |
setStrict(boolean strict)
If set to true, string-based filters will use exact string matches; Default is 'false', which means we'll fuzzy match |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,String> filterOverrides
protected Map<String,String> sortOverrides
protected PageControl pageControlOverrides
Constructor Detail |
---|
public Criteria()
Method Detail |
---|
public abstract Class<?> getPersistentClass()
public Integer getPageNumber()
public Integer getPageSize()
public List<String> getOrderingFieldNames()
public String getJPQLFilterOverride(String fieldName)
public String getJPQLSortOverride(String fieldName)
public PageControl getPageControlOverrides()
getPageControlOverrides
in interface BaseCriteria
protected void addSortField(String fieldName)
public void setPaging(int pageNumber, int pageSize)
public void setPageControl(PageControl pageControl)
setPageControl
in interface BaseCriteria
public boolean hasCustomizedSorting()
public void clearPaging()
public void setFiltersOptional(boolean filtersOptional)
public boolean isFiltersOptional()
public void setCaseSensitive(boolean caseSensitive)
public boolean isCaseSensitive()
public void setStrict(boolean strict)
setStrict
in interface BaseCriteria
public boolean isStrict()
isStrict
in interface BaseCriteria
public void setRestriction(Criteria.Restriction restriction)
Criteria.Restriction
public Criteria.Restriction getRestriction()
public void setSearchExpression(String searchExpression)
public String getSearchExpression()
public boolean isInventoryManagerRequired()
public boolean isSecurityManagerRequired()
public List<Permission> getRequiredPermissions()
public void addRequiredPermissions(Permission... requiredPermissions)
requiredPermissions
- the permissions required by the user on any applicable objects.
Typically resource permissions needed by the user on returned resources or resource related data.public String getAlias()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |