class SQLProjectionResultObjectProvider extends Object implements ResultObjectProvider
ResultSet.| Constructor and Description |
|---|
SQLProjectionResultObjectProvider(JDBCStore store,
JDBCFetchConfiguration fetch,
ResultSetResult res,
Class cls)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SQLProjectionResultObjectProvider(JDBCStore store, JDBCFetchConfiguration fetch, ResultSetResult res, Class cls) throws SQLException
res - the result datacls - the result class; may be null for the defaultSQLExceptionpublic boolean supportsRandomAccess()
ResultObjectProvidersupportsRandomAccess in interface ResultObjectProviderpublic void open()
ResultObjectProviderResultObjectProvider.next(), ResultObjectProvider.absolute(int), or ResultObjectProvider.size().open in interface ResultObjectProviderpublic Object getResultObject() throws SQLException
ResultObjectProviderResultObjectProvider.next() or ResultObjectProvider.absolute(int).getResultObject in interface ResultObjectProviderSQLExceptionpublic boolean next()
throws SQLException
ResultObjectProvidertrue if
there is more data; otherwise false.next in interface ResultObjectProviderSQLExceptionpublic 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 ResultObjectProviderSQLExceptionpublic int size()
throws SQLException
ResultObjectProviderInteger.MAX_VALUE
if the size in unknown.size in interface ResultObjectProviderSQLExceptionpublic void reset()
ResultObjectProviderreset in interface ResultObjectProviderpublic void close()
ResultObjectProviderclose in interface ResultObjectProviderclose in interface Closeablepublic void handleCheckedException(Exception e)
ResultObjectProviderhandleCheckedException in interface ResultObjectProviderCopyright © 2006–2015 Apache Software Foundation. All rights reserved.