|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
public abstract class SelectResultObjectProvider
Abstract provider implementation wrapped around a Select
.
Constructor Summary | |
---|---|
SelectResultObjectProvider(SelectExecutor sel,
JDBCStore store,
JDBCFetchConfiguration fetch)
Constructor. |
Method Summary | |
---|---|
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(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.lib.rop.ResultObjectProvider |
---|
getResultObject |
Constructor Detail |
---|
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 defaultMethod Detail |
---|
public SelectExecutor getSelect()
public JDBCStore getStore()
public JDBCFetchConfiguration getFetchConfiguration()
public Result getResult()
public boolean supportsRandomAccess()
ResultObjectProvider
supportsRandomAccess
in interface ResultObjectProvider
public void open() throws SQLException
ResultObjectProvider
ResultObjectProvider.next()
, ResultObjectProvider.absolute(int)
, or ResultObjectProvider.size()
.
open
in interface ResultObjectProvider
SQLException
public boolean next() throws SQLException
ResultObjectProvider
true
if
there is more data; otherwise false
.
next
in interface ResultObjectProvider
SQLException
public boolean absolute(int pos) throws SQLException
ResultObjectProvider
true
if there is data at this position;
otherwise false
. This may be invoked in place of
ResultObjectProvider.next()
.
absolute
in interface ResultObjectProvider
SQLException
public int size() throws SQLException
ResultObjectProvider
Integer.MAX_VALUE
if the size in unknown.
size
in interface ResultObjectProvider
SQLException
protected void setSize(int size)
public void reset() throws SQLException
ResultObjectProvider
reset
in interface ResultObjectProvider
SQLException
public void close()
ResultObjectProvider
close
in interface ResultObjectProvider
close
in interface Closeable
public void handleCheckedException(Exception e)
ResultObjectProvider
handleCheckedException
in interface ResultObjectProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |