|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a query result. It provides methods to iterate over the result and find items from the result.
Method Summary | |
void |
close()
Close the Query Result. |
void |
enablePaging(boolean enablePaging)
Enable paging. |
java.lang.Object |
getNextItem()
Return the next availible object in the result. |
int |
getNumberofPages()
Return the number of pages for the result on the count/page-size. |
java.lang.Object |
getPreviousItem()
Return the previous availible object in the result. |
java.lang.String |
getQueryString()
Return the query string associated with the query result. |
boolean |
hasNext()
Return true if there is next object availible in the result. |
boolean |
hasPrevious()
Return true if there is previous object availible in the result. |
boolean |
isPagingEnabled()
Detect whether paging is enabled. |
void |
loadAllResults()
Load all the result for the query. |
void |
refresh()
Refresh the query result. |
void |
setHoldSize(int holdSize)
Set the hold size of this query result. |
void |
setPageSize(int size)
Set the page size for this query result. |
Method Detail |
public java.lang.Object getNextItem() throws ManagementException
public java.lang.Object getPreviousItem() throws ManagementException
public boolean hasNext() throws ManagementException
public boolean hasPrevious() throws ManagementException
public int getNumberofPages() throws ManagementException
public void close() throws ManagementException
public void refresh() throws ManagementException
public void loadAllResults() throws ManagementException
public void enablePaging(boolean enablePaging) throws ManagementException
enablePaging
- true to enable pagin, false to disable itpublic boolean isPagingEnabled() throws ManagementException
public java.lang.String getQueryString() throws ManagementException
public void setHoldSize(int holdSize)
holdSize
- the number of element.public void setPageSize(int size)
size
- size of the page.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |