Package org.hibernate.query
Class Page
- java.lang.Object
-
- org.hibernate.query.Page
-
@Incubating public class Page extends Object
Identifies a page of query results by page size and page number.This is a convenience class which allows a reference to a page of results to be passed around the system before being applied to a
Queryby callingQuery.setPage(Page).A parameter of a HQL query method may be declared with type
Page.- Since:
- 6.3
- See Also:
SelectionQuery.setPage(Page)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pagefirst()static Pagefirst(int size)intgetFirstResult()intgetMaxResults()intgetNumber()intgetSize()booleanisFirst()Pagenext()static Pagepage(int size, int number)Pageprevious()
-
-
-
Method Detail
-
getSize
public int getSize()
-
getNumber
public int getNumber()
-
isFirst
public boolean isFirst()
-
getMaxResults
public int getMaxResults()
-
getFirstResult
public int getFirstResult()
-
page
public static Page page(int size, int number)
-
first
public static Page first(int size)
-
next
public Page next()
-
previous
public Page previous()
-
first
public Page first()
-
-