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