Class ReportQueryResultCollection
java.lang.Object
org.eclipse.persistence.jpa.rs.util.list.ReportQueryResultCollection
- All Implemented Interfaces:
PageableCollection<ReportQueryResultListItem>
public class ReportQueryResultCollection
extends Object
implements PageableCollection<ReportQueryResultListItem>
This class is used to wrap collection of records returned by
a JPA report query and includes paging links.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new report query result collection. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the item.voidAdds the link.getCount()Gets the total number of records in the current response.Returns true if collection has moregetItems()getLimit()Gets the limit.getLinks()Gets the links.Gets the offset.voidSets the count.voidsetHasMore(Boolean hasMore) Sets hasMorevoidsetItems(List<ReportQueryResultListItem> items) voidSets the limit.voidSets the links.voidSets the offset.
-
Constructor Details
-
ReportQueryResultCollection
public ReportQueryResultCollection()Instantiates a new report query result collection.
-
-
Method Details
-
addItem
Adds the item.- Parameters:
item- the item
-
addLink
Adds the link.- Specified by:
addLinkin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
link- the link to add
-
getItems
- Specified by:
getItemsin interfacePageableCollection<ReportQueryResultListItem>
-
setItems
- Specified by:
setItemsin interfacePageableCollection<ReportQueryResultListItem>
-
getLinks
Description copied from interface:PageableCollectionGets the links.- Specified by:
getLinksin interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the links
-
setLinks
Description copied from interface:PageableCollectionSets the links.- Specified by:
setLinksin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
links- the new links
-
getOffset
Description copied from interface:PageableCollectionGets the offset.- Specified by:
getOffsetin interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the offset
-
setOffset
Description copied from interface:PageableCollectionSets the offset.- Specified by:
setOffsetin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
offset- the new offset
-
getLimit
Description copied from interface:PageableCollectionGets the limit.- Specified by:
getLimitin interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the limit
-
setLimit
Description copied from interface:PageableCollectionSets the limit.- Specified by:
setLimitin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
limit- the new limit
-
getCount
Description copied from interface:PageableCollectionGets the total number of records in the current response.- Specified by:
getCountin interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the count
-
setCount
Description copied from interface:PageableCollectionSets the count.- Specified by:
setCountin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
count- the new count
-
setHasMore
Description copied from interface:PageableCollectionSets hasMore- Specified by:
setHasMorein interfacePageableCollection<ReportQueryResultListItem>- Parameters:
hasMore- the new checks for more
-
getHasMore
Description copied from interface:PageableCollectionReturns true if collection has more- Specified by:
getHasMorein interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the checks for more
-