public class CriteriaTransferObject
extends java.lang.Object
| Constructor and Description |
|---|
CriteriaTransferObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(FilterAndSortCriteria criteria)
Add a
FilterAndSortCriteria instance. |
void |
addAll(java.util.Collection<FilterAndSortCriteria> criterias)
Add all
FilterAndSortCriteria instances. |
FilterAndSortCriteria |
get(java.lang.String name) |
java.util.Map<java.lang.String,FilterAndSortCriteria> |
getCriteriaMap()
Retrieve the added
FilterAndSortCriteria instances organized into a map |
java.lang.Integer |
getFirstResult()
The index of records in the database for which a fetch will start.
|
java.lang.Integer |
getMaxResults()
The max number of records from the datastore to return.
|
void |
setCriteriaMap(java.util.Map<java.lang.String,FilterAndSortCriteria> criteriaMap) |
void |
setFirstResult(java.lang.Integer firstResult)
The index of records in the datastore for which a fetch will start.
|
void |
setMaxResults(java.lang.Integer maxResults)
The max number of records from the datastore to return.
|
public java.lang.Integer getFirstResult()
public void setFirstResult(java.lang.Integer firstResult)
firstResult - the index to start, or nullpublic java.lang.Integer getMaxResults()
public void setMaxResults(java.lang.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(java.util.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 java.util.Map<java.lang.String,FilterAndSortCriteria> getCriteriaMap()
FilterAndSortCriteria instances organized into a mapFilterAndSortCriteria instances as a mappublic void setCriteriaMap(java.util.Map<java.lang.String,FilterAndSortCriteria> criteriaMap)
public FilterAndSortCriteria get(java.lang.String name)
Copyright © 2018. All Rights Reserved.