Class ReadAllQueryResultCollection
java.lang.Object
org.eclipse.persistence.jpa.rs.util.list.ReadAllQueryResultCollection
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the item.voidaddLink(org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2 link) Adds the link.getCount()Gets the total number of records in the current response.Returns true if collection has moregetItems()getLimit()Gets the limit.List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2>getLinks()Gets the links.Gets the offset.voidSets the count.voidsetHasMore(Boolean hasMore) Sets hasMorevoidvoidSets the limit.voidSets the links.voidSets the offset.
-
Constructor Details
-
ReadAllQueryResultCollection
public ReadAllQueryResultCollection()
-
-
Method Details
-
getItems
- Specified by:
getItemsin interfacePageableCollection<Object>
-
setItems
- Specified by:
setItemsin interfacePageableCollection<Object>
-
setHasMore
Description copied from interface:PageableCollectionSets hasMore- Specified by:
setHasMorein interfacePageableCollection<Object>- Parameters:
hasMore- the new checks for more
-
getHasMore
Description copied from interface:PageableCollectionReturns true if collection has more- Specified by:
getHasMorein interfacePageableCollection<Object>- Returns:
- the checks for more
-
getCount
Description copied from interface:PageableCollectionGets the total number of records in the current response.- Specified by:
getCountin interfacePageableCollection<Object>- Returns:
- the count
-
setCount
Description copied from interface:PageableCollectionSets the count.- Specified by:
setCountin interfacePageableCollection<Object>- Parameters:
count- the new count
-
getLimit
Description copied from interface:PageableCollectionGets the limit.- Specified by:
getLimitin interfacePageableCollection<Object>- Returns:
- the limit
-
setLimit
Description copied from interface:PageableCollectionSets the limit.- Specified by:
setLimitin interfacePageableCollection<Object>- Parameters:
limit- the new limit
-
setOffset
Description copied from interface:PageableCollectionSets the offset.- Specified by:
setOffsetin interfacePageableCollection<Object>- Parameters:
offset- the new offset
-
getOffset
Description copied from interface:PageableCollectionGets the offset.- Specified by:
getOffsetin interfacePageableCollection<Object>- Returns:
- the offset
-
getLinks
Description copied from interface:PageableCollectionGets the links.- Specified by:
getLinksin interfacePageableCollection<Object>- Returns:
- the links
-
setLinks
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
Adds the item.- Parameters:
item- the item
-