Class ReportQueryResultCollection
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.util.list.ReportQueryResultCollection
-
- All Implemented Interfaces:
PageableCollection<ReportQueryResultListItem>
public class ReportQueryResultCollection extends java.lang.Object implements PageableCollection<ReportQueryResultListItem>
This class is used to wrap collection of records returned by a JPA report query and includes paging links.- Author:
- gonural
-
-
Constructor Summary
Constructors Constructor Description ReportQueryResultCollection()Instantiates a new report query result collection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(ReportQueryResultListItem item)Adds the item.voidaddLink(org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2 link)Adds the link.java.lang.IntegergetCount()Gets the total number of records in the current response.java.lang.BooleangetHasMore()Returns true if collection has morejava.util.List<ReportQueryResultListItem>getItems()java.lang.IntegergetLimit()Gets the limit.java.util.List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2>getLinks()Gets the links.java.lang.IntegergetOffset()Gets the offset.voidsetCount(java.lang.Integer count)Sets the count.voidsetHasMore(java.lang.Boolean hasMore)Sets hasMorevoidsetItems(java.util.List<ReportQueryResultListItem> items)voidsetLimit(java.lang.Integer limit)Sets the limit.voidsetLinks(java.util.List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2> links)Sets the links.voidsetOffset(java.lang.Integer offset)Sets the offset.
-
-
-
Method Detail
-
addItem
public void addItem(ReportQueryResultListItem item)
Adds the item.- Parameters:
item- the item
-
addLink
public void addLink(org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2 link)
Adds the link.- Specified by:
addLinkin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
link- the link to add
-
getItems
public java.util.List<ReportQueryResultListItem> getItems()
- Specified by:
getItemsin interfacePageableCollection<ReportQueryResultListItem>
-
setItems
public void setItems(java.util.List<ReportQueryResultListItem> items)
- Specified by:
setItemsin interfacePageableCollection<ReportQueryResultListItem>
-
getLinks
public java.util.List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2> getLinks()
Description copied from interface:PageableCollectionGets the links.- Specified by:
getLinksin interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the links
-
setLinks
public void setLinks(java.util.List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2> links)
Description copied from interface:PageableCollectionSets the links.- Specified by:
setLinksin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
links- the new links
-
getOffset
public java.lang.Integer getOffset()
Description copied from interface:PageableCollectionGets the offset.- Specified by:
getOffsetin interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the offset
-
setOffset
public void setOffset(java.lang.Integer offset)
Description copied from interface:PageableCollectionSets the offset.- Specified by:
setOffsetin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
offset- the new offset
-
getLimit
public java.lang.Integer getLimit()
Description copied from interface:PageableCollectionGets the limit.- Specified by:
getLimitin interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the limit
-
setLimit
public void setLimit(java.lang.Integer limit)
Description copied from interface:PageableCollectionSets the limit.- Specified by:
setLimitin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
limit- the new limit
-
getCount
public java.lang.Integer getCount()
Description copied from interface:PageableCollectionGets the total number of records in the current response.- Specified by:
getCountin interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the count
-
setCount
public void setCount(java.lang.Integer count)
Description copied from interface:PageableCollectionSets the count.- Specified by:
setCountin interfacePageableCollection<ReportQueryResultListItem>- Parameters:
count- the new count
-
setHasMore
public void setHasMore(java.lang.Boolean hasMore)
Description copied from interface:PageableCollectionSets hasMore- Specified by:
setHasMorein interfacePageableCollection<ReportQueryResultListItem>- Parameters:
hasMore- the new checks for more
-
getHasMore
public java.lang.Boolean getHasMore()
Description copied from interface:PageableCollectionReturns true if collection has more- Specified by:
getHasMorein interfacePageableCollection<ReportQueryResultListItem>- Returns:
- the checks for more
-
-