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
Query
by 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 Page
first()
static Page
first(int size)
int
getFirstResult()
int
getMaxResults()
int
getNumber()
int
getSize()
boolean
isFirst()
Page
next()
static Page
page(int size, int number)
Page
previous()
-
-
-
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()
-
-