|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.openadmin.dto.CriteriaTransferObject
public class CriteriaTransferObject
Generic persistent entity criteria transfer object. Provides a storage mechanism for query related information regarding an entity.
| Constructor Summary | |
|---|---|
CriteriaTransferObject()
|
|
| Method Summary | |
|---|---|
void |
add(FilterAndSortCriteria criteria)
Add a FilterAndSortCriteria instance. |
void |
addAll(Collection<FilterAndSortCriteria> criterias)
Add all FilterAndSortCriteria instances. |
FilterAndSortCriteria |
get(String name)
|
List<FilterMapping> |
getAdditionalFilterMappings()
This list holds additional filter mappings that might have been constructed in a custom persistence handler. |
Map<String,FilterAndSortCriteria> |
getCriteriaMap()
Retrieve the added FilterAndSortCriteria instances organized into a map |
Integer |
getFirstResult()
The index of records in the database for which a fetch will start. |
Integer |
getMaxResults()
The max number of records from the datastore to return. |
void |
setAdditionalFilterMappings(List<FilterMapping> additionalFilterMappings)
|
void |
setCriteriaMap(Map<String,FilterAndSortCriteria> criteriaMap)
|
void |
setFirstResult(Integer firstResult)
The index of records in the datastore for which a fetch will start. |
void |
setMaxResults(Integer maxResults)
The max number of records from the datastore to return. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CriteriaTransferObject()
| Method Detail |
|---|
public Integer getFirstResult()
public void setFirstResult(Integer firstResult)
firstResult - the index to start, or nullpublic Integer getMaxResults()
public void setMaxResults(Integer maxResults)
maxResults - the max records, or nullpublic void add(FilterAndSortCriteria criteria)
FilterAndSortCriteria instance. Contains information about which records are retrieved
and in what direction they're sorted.
criteria - FilterAndSortCriteriapublic void addAll(Collection<FilterAndSortCriteria> criterias)
FilterAndSortCriteria instances. Contains information about which records are retrieved
and in what direction they're sorted.
criterias - the list of FilterAndSortCriteria instances to addpublic Map<String,FilterAndSortCriteria> getCriteriaMap()
FilterAndSortCriteria instances organized into a map
FilterAndSortCriteria instances as a mappublic void setCriteriaMap(Map<String,FilterAndSortCriteria> criteriaMap)
public FilterAndSortCriteria get(String name)
public List<FilterMapping> getAdditionalFilterMappings()
public void setAdditionalFilterMappings(List<FilterMapping> additionalFilterMappings)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||