Top Description Fields Constructors Methods
org.hibernate.query

public Class Page

extends Object
Class Inheritance
Annotations
@Incubating
Imports
org.hibernate.Incubating

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 calling Query#setPage(Page).

A parameter of a HQL query method may be declared with type Page.

Author
Gavin King
Since
6.3
See Also
SelectionQuery#setPage(Page)

Field Summary

Modifier and TypeField and Description
private final int
private final int

Constructor Summary

AccessConstructor and Description
private
Page(int size, int number)

Method Summary

Modifier and TypeMethod and Description
public static Page
first(int size)

public Page
public int
public int
public int
public int
public boolean
public Page
next()

public static Page
page(int size, int number)

public Page
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

numberback to summary
private final int number
sizeback to summary
private final int size

Constructor Detail

Pageback to summary
private Page(int size, int number)

Method Detail

firstback to summary
public static Page first(int size)
firstback to summary
public Page first()
getFirstResultback to summary
public int getFirstResult()
getMaxResultsback to summary
public int getMaxResults()
getNumberback to summary
public int getNumber()
getSizeback to summary
public int getSize()
isFirstback to summary
public boolean isFirst()
nextback to summary
public Page next()
pageback to summary
public static Page page(int size, int number)
previousback to summary
public Page previous()