public class CriteriaTransferObject extends Object
Constructor and Description |
---|
CriteriaTransferObject() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
- FilterAndSortCriteria
public 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 mapFilterAndSortCriteria
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)
Copyright © 2014. All rights reserved.