|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.openutils.hibernate.paging.PaginatedResultImpl<T>
public class PaginatedResultImpl<T>
| Constructor Summary | |
|---|---|
PaginatedResultImpl(int itemsPerPage,
int pageNumberStartingFromOne,
int totalSize)
|
|
| Method Summary | |
|---|---|
T |
getFirstResult()
Returns the fist result if available, null otherwise. |
Collection<T> |
getItems()
Gets an iterator over the results |
int |
getItemsPerPage()
Gets the maximum number of results per page |
int |
getNumberOfPages()
Gets the total number of pages |
int |
getPage()
Gets the page number (1, 2, 3...) |
int |
getTotalSize()
Gets the total number of results that would be retrieved without pagination. |
void |
setResults(Collection<T> results)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaginatedResultImpl(int itemsPerPage,
int pageNumberStartingFromOne,
int totalSize)
itemsPerPage - pageNumberStartingFromOne - totalSize - | Method Detail |
|---|
public int getItemsPerPage()
getItemsPerPage in interface PaginatedResult<T>public int getPage()
getPage in interface PaginatedResult<T>public int getTotalSize()
getTotalSize in interface PaginatedResult<T>public int getNumberOfPages()
getNumberOfPages in interface PaginatedResult<T>public Collection<T> getItems()
getItems in interface PaginatedResult<T>public T getFirstResult()
getFirstResult in interface PaginatedResult<T>public void setResults(Collection<T> results)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||