| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResultObjectProvider
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. | 
|  java.lang.Object | getResultObject()Instantiate the current result object. | 
|  void | handleCheckedException(java.lang.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_VALUEif the size in unknown. | 
|  boolean | supportsRandomAccess()Return true if this provider supports random access. | 
| Method Detail | 
|---|
boolean supportsRandomAccess()
void open()
          throws java.lang.Exception
next(), absolute(int), or size().
java.lang.Exception
java.lang.Object getResultObject()
                                 throws java.lang.Exception
next() or absolute(int).
java.lang.Exception
boolean next()
             throws java.lang.Exception
true if
 there is more data; otherwise false.
java.lang.Exception
boolean absolute(int pos)
                 throws java.lang.Exception
true if there is data at this position;
 otherwise false. This may be invoked in place of
 next().
java.lang.Exception
int size()
         throws java.lang.Exception
Integer.MAX_VALUE
 if the size in unknown.
java.lang.Exception
void reset()
           throws java.lang.Exception
java.lang.Exception
void close()
           throws java.lang.Exception
close in interface Closeablejava.lang.Exceptionvoid handleCheckedException(java.lang.Exception e)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||