|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kodo.jdbc.runtime.JDBCResultObjectProvider
Object provider implementation wrapped around a JDBC Result.
| Constructor Summary | |
JDBCResultObjectProvider(Class pcClass,
JDBCStoreManager store,
JDBCFetchConfiguration fetch,
Result res)
Constructor. |
|
JDBCResultObjectProvider(ClassMapping mapping,
JDBCStoreManager store,
JDBCFetchConfiguration fetch,
Result res)
Constructor. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCResultObjectProvider(Class pcClass,
JDBCStoreManager store,
JDBCFetchConfiguration fetch,
Result res)
pcClass - the base class of the result objectsstore - the store manager to delegate loading tofetch - the fetch configuration, or null for defaultres - the result containing the data
public JDBCResultObjectProvider(ClassMapping mapping,
JDBCStoreManager store,
JDBCFetchConfiguration fetch,
Result res)
mapping - the mapping for the base class of the result objectsstore - the store manager to delegate loading tofetch - the fetch configuration, or null for defaultres - the result containing the data| Method Detail |
public boolean supportsRandomAccess()
ResultObjectProvidersupportsRandomAccess in interface ResultObjectProviderpublic void open()
ResultObjectProviderResultObjectProvider.next(), ResultObjectProvider.absolute(int), or {@linke #size}.open in interface ResultObjectProvider
public Object getResultObject()
throws SQLException
ResultObjectProviderResultObjectProvider.next() or ResultObjectProvider.absolute(int).getResultObject in interface ResultObjectProvider
public boolean next()
throws SQLException
ResultObjectProvidertrue if
there is more data; otherwise false.next in interface ResultObjectProvider
public boolean absolute(int pos)
throws SQLException
ResultObjectProvidertrue if there is data at this position;
otherwise false. This may be invoked in place of
ResultObjectProvider.next().absolute in interface ResultObjectProvider
public int size()
throws SQLException
ResultObjectProviderInteger.MAX_VALUE
if the size in unknown.size in interface ResultObjectProviderpublic void reset()
ResultObjectProviderreset in interface ResultObjectProviderpublic void close()
ResultObjectProviderclose in interface ResultObjectProviderpublic void handleCheckedException(Exception e)
ResultObjectProviderhandleCheckedException in interface ResultObjectProvider
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||