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. |
void |
defaultSortDirectionForFieldIfUnset(String name,
SortDirection defaultDirection) |
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 |
Long |
getFirstId() |
Integer |
getFirstResult()
The index of records in the database for which a fetch will start.
|
Long |
getFolderId()
Gets the folder ID to filter a fetch on so that only entities in a folder will be shown.
|
Long |
getLastId() |
Integer |
getLowerCount() |
Integer |
getMaxResults()
The max number of records from the datastore to return.
|
List<FilterMapping> |
getNonCountAdditionalFilterMappings()
This list holds additional filter mappings that might have been constructed in a custom persistence
handler.
|
Boolean |
getPresentationFetch() |
Integer |
getUpperCount() |
boolean |
isFolderLookup()
Tells if this is a foldered fetch
|
void |
setAdditionalFilterMappings(List<FilterMapping> additionalFilterMappings) |
void |
setCriteriaMap(Map<String,FilterAndSortCriteria> criteriaMap) |
void |
setFirstId(Long firstId) |
void |
setFirstResult(Integer firstResult)
The index of records in the datastore for which a fetch will start.
|
void |
setFolderId(Long folderId) |
void |
setFolderLookup(Boolean folderLookup) |
void |
setLastId(Long lastId) |
void |
setLowerCount(Integer lowerCount) |
void |
setMaxResults(Integer maxResults)
The max number of records from the datastore to return.
|
void |
setNonCountAdditionalFilterMappings(List<FilterMapping> nonCountAdditionalFilterMappings) |
void |
setPresentationFetch(Boolean presentationFetch) |
void |
setUpperCount(Integer upperCount) |
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 Long getLastId()
public void setLastId(Long lastId)
public Long getFirstId()
public void setFirstId(Long firstId)
public Integer getUpperCount()
public void setUpperCount(Integer upperCount)
public Integer getLowerCount()
public void setLowerCount(Integer lowerCount)
public Boolean getPresentationFetch()
public void setPresentationFetch(Boolean presentationFetch)
public 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 void defaultSortDirectionForFieldIfUnset(String name, SortDirection defaultDirection)
public List<FilterMapping> getAdditionalFilterMappings()
public void setAdditionalFilterMappings(List<FilterMapping> additionalFilterMappings)
public List<FilterMapping> getNonCountAdditionalFilterMappings()
public void setNonCountAdditionalFilterMappings(List<FilterMapping> nonCountAdditionalFilterMappings)
public boolean isFolderLookup()
public void setFolderLookup(Boolean folderLookup)
public Long getFolderId()
folderLookup
is true, this means find entities not assigned to a folder.public void setFolderId(Long folderId)
Copyright © 2022. All rights reserved.