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
ConstructorDescriptionInstantiates a new report query result collection. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the item.void
Adds 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.void
Sets the count.void
setHasMore
(Boolean hasMore) Sets hasMorevoid
setItems
(List<ReportQueryResultListItem> items) void
Sets the limit.void
Sets the links.void
Sets 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:
addLink
in interfacePageableCollection<ReportQueryResultListItem>
- Parameters:
link
- the link to add
-
getItems
- Specified by:
getItems
in interfacePageableCollection<ReportQueryResultListItem>
-
setItems
- Specified by:
setItems
in interfacePageableCollection<ReportQueryResultListItem>
-
getLinks
Description copied from interface:PageableCollection
Gets the links.- Specified by:
getLinks
in interfacePageableCollection<ReportQueryResultListItem>
- Returns:
- the links
-
setLinks
Description copied from interface:PageableCollection
Sets the links.- Specified by:
setLinks
in interfacePageableCollection<ReportQueryResultListItem>
- Parameters:
links
- the new links
-
getOffset
Description copied from interface:PageableCollection
Gets the offset.- Specified by:
getOffset
in interfacePageableCollection<ReportQueryResultListItem>
- Returns:
- the offset
-
setOffset
Description copied from interface:PageableCollection
Sets the offset.- Specified by:
setOffset
in interfacePageableCollection<ReportQueryResultListItem>
- Parameters:
offset
- the new offset
-
getLimit
Description copied from interface:PageableCollection
Gets the limit.- Specified by:
getLimit
in interfacePageableCollection<ReportQueryResultListItem>
- Returns:
- the limit
-
setLimit
Description copied from interface:PageableCollection
Sets the limit.- Specified by:
setLimit
in interfacePageableCollection<ReportQueryResultListItem>
- Parameters:
limit
- the new limit
-
getCount
Description copied from interface:PageableCollection
Gets the total number of records in the current response.- Specified by:
getCount
in interfacePageableCollection<ReportQueryResultListItem>
- Returns:
- the count
-
setCount
Description copied from interface:PageableCollection
Sets the count.- Specified by:
setCount
in interfacePageableCollection<ReportQueryResultListItem>
- Parameters:
count
- the new count
-
setHasMore
Description copied from interface:PageableCollection
Sets hasMore- Specified by:
setHasMore
in interfacePageableCollection<ReportQueryResultListItem>
- Parameters:
hasMore
- the new checks for more
-
getHasMore
Description copied from interface:PageableCollection
Returns true if collection has more- Specified by:
getHasMore
in interfacePageableCollection<ReportQueryResultListItem>
- Returns:
- the checks for more
-