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 void
addItem(Object item)
Adds the item.void
addLink(org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2 link)
Adds the link.Integer
getCount()
Gets the total number of records in the current response.Boolean
getHasMore()
Returns true if collection has moreList<Object>
getItems()
Integer
getLimit()
Gets the limit.List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2>
getLinks()
Gets the links.Integer
getOffset()
Gets the offset.void
setCount(Integer count)
Sets the count.void
setHasMore(Boolean hasMore)
Sets hasMorevoid
setItems(List<Object> items)
void
setLimit(Integer limit)
Sets the limit.void
setLinks(List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2> links)
Sets the links.void
setOffset(Integer offset)
Sets the offset.
-
-
-
Method Detail
-
getItems
public List<Object> getItems()
- Specified by:
getItems
in interfacePageableCollection<Object>
-
setItems
public void setItems(List<Object> items)
- Specified by:
setItems
in interfacePageableCollection<Object>
-
setHasMore
public void setHasMore(Boolean hasMore)
Description copied from interface:PageableCollection
Sets hasMore- Specified by:
setHasMore
in interfacePageableCollection<Object>
- Parameters:
hasMore
- the new checks for more
-
getHasMore
public Boolean getHasMore()
Description copied from interface:PageableCollection
Returns true if collection has more- Specified by:
getHasMore
in interfacePageableCollection<Object>
- Returns:
- the checks for more
-
getCount
public Integer 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
public void setCount(Integer count)
Description copied from interface:PageableCollection
Sets the count.- Specified by:
setCount
in interfacePageableCollection<Object>
- Parameters:
count
- the new count
-
getLimit
public Integer getLimit()
Description copied from interface:PageableCollection
Gets the limit.- Specified by:
getLimit
in interfacePageableCollection<Object>
- Returns:
- the limit
-
setLimit
public void setLimit(Integer limit)
Description copied from interface:PageableCollection
Sets the limit.- Specified by:
setLimit
in interfacePageableCollection<Object>
- Parameters:
limit
- the new limit
-
setOffset
public void setOffset(Integer offset)
Description copied from interface:PageableCollection
Sets the offset.- Specified by:
setOffset
in interfacePageableCollection<Object>
- Parameters:
offset
- the new offset
-
getOffset
public Integer getOffset()
Description copied from interface:PageableCollection
Gets the offset.- Specified by:
getOffset
in interfacePageableCollection<Object>
- Returns:
- the offset
-
getLinks
public List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2> getLinks()
Description copied from interface:PageableCollection
Gets the links.- Specified by:
getLinks
in interfacePageableCollection<Object>
- Returns:
- the links
-
setLinks
public void setLinks(List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2> links)
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
public void addItem(Object item)
Adds the item.- Parameters:
item
- the item
-
-