Class SqlPage<T>
java.lang.Object
com.github.fabriciofx.cactoos.jdbc.pagination.SqlPage<T>
- Type Parameters:
T
- Type of the page's content
- All Implemented Interfaces:
Page<T>
SqlPage.
There is no thread-safety guarantee.
- Since:
- 0.8.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SqlPage
Ctor.- Parameters:
session
- A sessionadapter
- An adapterall
- A query tha retrieve all elementssize
- Amount of elements in this pagelimit
- The maximum amount of elements per pagenumber
- The page number
-
-
Method Details
-
content
Description copied from interface:Page
Get the content of this page. -
hasNext
public boolean hasNext()Description copied from interface:Page
Check if there is a next page. -
next
Description copied from interface:Page
Get the next page. -
hasPrevious
public boolean hasPrevious()Description copied from interface:Page
Check if there is a previous page.- Specified by:
hasPrevious
in interfacePage<T>
- Returns:
- True if contains or false if it doesn't
-
previous
Description copied from interface:Page
Get the previous page.
-