|
|||||||||
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 arrayMethod Detail |
public void activate()
activate
in interface PageAdapter
public void close()
close
in interface PageAdapter
public int count() throws PageException
count
in interface PageAdapter
PageException
- See PageAdapterpublic boolean hasNext()
hasNext
in interface PageAdapter
public void idleTimeOut()
idleTimeOut
in interface PageAdapter
public java.lang.Object next() throws PageException
next
in interface PageAdapter
PageException
- See PageAdapterpublic void passivate()
passivate
in interface PageAdapter
public java.lang.Object prev() throws PageException
prev
in interface PageAdapter
PageException
- See PageAdapterpublic void setCurrentPosition(int index) throws PageException
setCurrentPosition
in interface PageAdapter
index
- See PageAdapter
PageException
- See PageAdapterpublic void setReadForwardOnly(boolean forwardOnly) throws PageException
setReadForwardOnly
in interface PageAdapter
forwardOnly
- the
PageException
- An error occured.public void sort(java.util.Comparator c) throws PageException
sort
in interface PageAdapter
c
- See PageAdapter
PageException
- See PageAdapterpublic void sortSummary(java.util.Comparator c) throws PageException
sortSummary
in interface PageAdapter
c
- See PageAdapter
PageException
- See PageAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.