Interface PageableCollection<T>
- All Known Implementing Classes:
ReadAllQueryResultCollection,ReportQueryResultCollection
public interface PageableCollection<T>
Marker interface for queries returning paged results
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLink(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.
-
Method Details
-
getItems
-
setItems
-
setHasMore
Sets hasMore- Parameters:
hasMore- the new checks for more
-
getHasMore
Boolean getHasMore()Returns true if collection has more- Returns:
- the checks for more
-
getCount
Integer getCount()Gets the total number of records in the current response.- Returns:
- the count
-
setCount
Sets the count.- Parameters:
count- the new count
-
getLimit
Integer getLimit()Gets the limit.- Returns:
- the limit
-
setLimit
Sets the limit.- Parameters:
limit- the new limit
-
setOffset
Sets the offset.- Parameters:
offset- the new offset
-
getOffset
Integer getOffset()Gets the offset.- Returns:
- the offset
-
getLinks
List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2> getLinks()Gets the links.- Returns:
- the links
-
setLinks
Sets the links.- Parameters:
links- the new links
-
addLink
void addLink(org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2 link) Adds the link.- Parameters:
link- the link
-