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