|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.page.ArrayPageAdapter
Adapts any array for use in PageIterator
| Constructor Summary | |
ArrayPageAdapter(java.util.List objList)
Creates a new instance of ArrayPageAdapter |
|
ArrayPageAdapter(java.lang.Object[] objArray)
Creates a new instance of ArrayPageAdapter |
|
| Method Summary | |
void |
activate()
See PageAdapter |
void |
close()
See PageAdapter |
int |
count()
See PageAdapter |
boolean |
hasNext()
See PageAdapter |
void |
idleTimeOut()
See PageAdapter |
java.lang.Object |
next()
See PageAdapter |
void |
passivate()
See PageAdapter |
java.lang.Object |
prev()
See PageAdapter |
void |
setCurrentPosition(int index)
See PageAdapter |
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)
See PageAdapter |
void |
sortSummary(java.util.Comparator c)
See PageAdapter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArrayPageAdapter(java.util.List objList)
objList - Data source as a listpublic ArrayPageAdapter(java.lang.Object[] objArray)
objArray - Data source as an array| Method Detail |
public void activate()
activate in interface PageAdapterpublic void close()
close in interface PageAdapter
public int count()
throws PageException
count in interface PageAdapterPageException - See PageAdapterpublic boolean hasNext()
hasNext in interface PageAdapterpublic void idleTimeOut()
idleTimeOut in interface PageAdapter
public java.lang.Object next()
throws PageException
next in interface PageAdapterPageException - See PageAdapterpublic void passivate()
passivate in interface PageAdapter
public java.lang.Object prev()
throws PageException
prev in interface PageAdapterPageException - See PageAdapter
public void setCurrentPosition(int index)
throws PageException
setCurrentPosition in interface PageAdapterindex - See PageAdapter
PageException - See PageAdapter
public void setReadForwardOnly(boolean forwardOnly)
throws PageException
setReadForwardOnly in interface PageAdapterforwardOnly - the
PageException - An error occured.
public void sort(java.util.Comparator c)
throws PageException
sort in interface PageAdapterc - See PageAdapter
PageException - See PageAdapter
public void sortSummary(java.util.Comparator c)
throws PageException
sortSummary in interface PageAdapterc - See PageAdapter
PageException - See PageAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.