|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Page adapter interface
| Method Summary | |
void |
activate()
When the stateful session bean activates, it will first call this method. |
void |
close()
When the stateful session bean is removed, it will first call this method. |
int |
count()
Get a count of all the objects in the data source |
boolean |
hasNext()
Return true if there are more records |
void |
idleTimeOut()
After the timeout period has expired, this method is called to allow the data source to perform resource conservation activities. |
java.lang.Object |
next()
Get the next element |
void |
passivate()
When the stateful session bean passivates, it will first call this method on the data source. |
java.lang.Object |
prev()
Get the previous element |
void |
setCurrentPosition(int index)
Set the current position of the adapter |
void |
setReadForwardOnly(boolean forwardOnly)
Set the forward only mode that will clear all the DataPage objects of of a given loaded page i when we start reading/loading the next page i+1. |
void |
sort(java.util.Comparator c)
Sort the records based on comparator |
void |
sortSummary(java.util.Comparator c)
Sort the records based on comparator |
| Method Detail |
public void activate()
public void close()
public int count()
throws PageException
PageException - An error occured.
public boolean hasNext()
throws PageException
PageException - An error occuredpublic void idleTimeOut()
public java.lang.Object next()
throws PageException
PageException - An error occured.public void passivate()
public java.lang.Object prev()
throws PageException
PageException - An error occured.
public void setCurrentPosition(int index)
throws PageException
index - current position
PageException - An error occured.
public void setReadForwardOnly(boolean forwardOnly)
throws PageException
forwardOnly - forward only mode
PageException - An error occured.
public void sort(java.util.Comparator c)
throws PageException
c - Comparator to sort by
PageException - An error occured.
public void sortSummary(java.util.Comparator c)
throws PageException
c - Comparator to sort by
PageException - An error occured.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.