|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface that allows lazy/custom instantiation of input objects.
ResultList objects do not necessarily load in data all
at once. Instead, they may lazily load objects as necessary. So,
the lifespan of a ResultObjectProvider instance is
related to how the application deals with processing the
ResultList created with a given
ResultObjectProvider instance.
| Method Summary | |
boolean |
absolute(int pos)
Move to the given 0-based position. |
void |
close()
Free the resources associated with this provider. |
Object |
getResultObject()
Instantiate the current result object. |
void |
handleCheckedException(Exception e)
Any checked exceptions that are thrown will be passed to this method. |
boolean |
next()
Advance the input to the next position. |
void |
open()
Open the result. |
void |
reset()
Reset this provider. |
int |
size()
Return the number of items in the input, or Integer.MAX_VALUE
if the size in unknown. |
boolean |
supportsRandomAccess()
Return true if this provider supports random access. |
| Method Detail |
public boolean supportsRandomAccess()
public void open()
throws Exception
next(), absolute(int), or size().
public Object getResultObject()
throws Exception
next() or absolute(int).
public boolean next()
throws Exception
true if
there is more data; otherwise false.
public boolean absolute(int pos)
throws Exception
true if there is data at this position;
otherwise false. This may be invoked in place of
next().
public int size()
throws Exception
Integer.MAX_VALUE
if the size in unknown.
public void reset()
throws Exception
public void close()
throws Exception
close in interface com.solarmetric.util.Closeablepublic void handleCheckedException(Exception e)
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||