org.broadleafcommerce.openadmin.client.dto
public class FilterAndSortCriteria extends Object implements com.google.gwt.user.client.rpc.IsSerializable, Serializable
This class is essentially an analogy of server-side property criteria regarding the filtering and sorting functionality.
Back on the server side, persistent entity property mappings are used to resolve:
FilterAndSortCriteria instance must be
unique within the CriteriaTransferObject.CriteriaTransferObject,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
FilterAndSortCriteria()
Creates a new persistent entity criteria
(for deserialization purposes only).
|
|
FilterAndSortCriteria(String propertyId)
Creates a new persistent entity criteria.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearFilterValues()
Clears any filter value(s) set previously
to this criteria.
|
String[] |
getFilterValues() |
Boolean |
getIgnoreCase() |
String |
getPropertyId() |
Boolean |
getSortAscending() |
void |
setFilterValue(String value)
Sets a single filter value to this criteria,
replacing any filter value(s) set previously.
|
void |
setFilterValues(String... values)
Sets multiple filter values to this criteria,
replacing any filter value(s) set previously.
|
void |
setIgnoreCase(Boolean ignoreCase) |
void |
setSortAscending(Boolean sortAscending) |
protected FilterAndSortCriteria()
public FilterAndSortCriteria(String propertyId)
propertyId - Symbolic persistent entity property
identifier.public String getPropertyId()
public String[] getFilterValues()
public void clearFilterValues()
public void setFilterValue(String value)
value - String-based filter value.public void setFilterValues(String... values)
values - String-based filter values.public Boolean getSortAscending()
public void setSortAscending(Boolean sortAscending)
sortAscending - true for ascending,
false for descending sort order or null
to disable the sorting functionality.public Boolean getIgnoreCase()
public void setIgnoreCase(Boolean ignoreCase)
ignoreCase - true for case-insensitive
sorting, false for case-sensitive sorting
(applicable only when sortAscending is not
null).Copyright © 2015. All Rights Reserved.