public abstract class SelectResultObjectProvider extends java.lang.Object implements ResultObjectProvider
Select.| Constructor and Description |
|---|
SelectResultObjectProvider(SelectExecutor sel,
JDBCStore store,
JDBCFetchConfiguration fetch)
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.
|
JDBCFetchConfiguration |
getFetchConfiguration() |
Result |
getResult() |
SelectExecutor |
getSelect() |
JDBCStore |
getStore() |
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.
|
protected void |
setSize(int size)
Allow subclasses that know the size to set it; otherwise we calculate
it internally.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResultObjectprotected Result _res
public SelectResultObjectProvider(SelectExecutor sel, JDBCStore store, JDBCFetchConfiguration fetch)
sel - the select to executestore - the store to delegate loading tofetch - the fetch configuration, or null for the defaultpublic SelectExecutor getSelect()
public JDBCStore getStore()
public JDBCFetchConfiguration getFetchConfiguration()
public Result getResult()
public boolean supportsRandomAccess()
ResultObjectProvidersupportsRandomAccess in interface ResultObjectProviderpublic void open()
throws java.sql.SQLException
ResultObjectProviderResultObjectProvider.next(), ResultObjectProvider.absolute(int), or ResultObjectProvider.size().open in interface ResultObjectProviderjava.sql.SQLExceptionpublic boolean next()
throws java.sql.SQLException
ResultObjectProvidertrue if
there is more data; otherwise false.next in interface ResultObjectProviderjava.sql.SQLExceptionpublic boolean absolute(int pos)
throws java.sql.SQLException
ResultObjectProvidertrue if there is data at this position;
otherwise false. This may be invoked in place of
ResultObjectProvider.next().absolute in interface ResultObjectProviderjava.sql.SQLExceptionpublic int size()
throws java.sql.SQLException
ResultObjectProviderInteger.MAX_VALUE
if the size in unknown.size in interface ResultObjectProviderjava.sql.SQLExceptionprotected void setSize(int size)
public void reset()
throws java.sql.SQLException
ResultObjectProviderreset in interface ResultObjectProviderjava.sql.SQLExceptionpublic void close()
ResultObjectProviderclose in interface ResultObjectProviderclose in interface Closeablepublic void handleCheckedException(java.lang.Exception e)
ResultObjectProviderhandleCheckedException in interface ResultObjectProviderCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.