|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hibernate.PageInfo
public class PageInfo
A paging class that knows a little about Hibernate.
Method Summary | |
---|---|
static PageInfo |
create(int pageNum,
int pageSize,
SortField sort,
boolean ascending)
|
static PageInfo |
create(PageControl pc,
SortField sort)
|
static PageInfo |
getAll(SortField sort,
boolean ascending)
Returns a page control which will return all elements (not paged) |
int |
getPageNum()
Get the page number. |
int |
getPageSize()
Get the max # of elements per page |
SortField |
getSort()
Gets the field to sort on |
int |
getStartRow()
Returns the absolute index of the first row that the page points at. |
boolean |
isAll()
|
boolean |
isAscending()
|
org.hibernate.Query |
pageResults(org.hibernate.Query q)
Modifies a Hibernate query to conform to the paging specs in this PageInfo object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getPageNum()
public int getPageSize()
public int getStartRow()
public SortField getSort()
public boolean isAscending()
public boolean isAll()
public org.hibernate.Query pageResults(org.hibernate.Query q)
public static PageInfo create(int pageNum, int pageSize, SortField sort, boolean ascending)
public static PageInfo getAll(SortField sort, boolean ascending)
public static PageInfo create(PageControl pc, SortField sort)
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |