|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.page.IteratorPageAdapter
Page adapter for Iterators
| Constructor Summary | |
IteratorPageAdapter(java.util.Iterator iterator,
int maxElements)
Creates a new instance of IteratorPageAdapter |
|
IteratorPageAdapter(QMIterator iterator,
int maxElements)
Creates a new instance of IteratorPageAdapter |
|
| 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()
See PageAdapter |
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 IteratorPageAdapter(java.util.Iterator iterator,
int maxElements)
iterator - Iterator data sourcemaxElements - Max elements that will be loaded
public IteratorPageAdapter(QMIterator iterator,
int maxElements)
iterator - Iterator data sourcemaxElements - Max elements that will be loaded| 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 PageAdapter
public boolean hasNext()
throws PageException
hasNext in interface PageAdapterPageException - See 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()
throws PageException
PageException - See PageAdapter
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.