class SQLProjectionResultObjectProvider extends java.lang.Object implements ResultObjectProvider
ResultSet
.Constructor and Description |
---|
SQLProjectionResultObjectProvider(JDBCStore store,
JDBCFetchConfiguration fetch,
ResultSetResult res,
java.lang.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.
|
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_VALUE
if the size in unknown. |
boolean |
supportsRandomAccess()
Return true if this provider supports random access.
|
public SQLProjectionResultObjectProvider(JDBCStore store, JDBCFetchConfiguration fetch, ResultSetResult res, java.lang.Class cls) throws java.sql.SQLException
res
- the result datacls
- the result class; may be null for the defaultjava.sql.SQLException
public boolean supportsRandomAccess()
ResultObjectProvider
supportsRandomAccess
in interface ResultObjectProvider
public void open()
ResultObjectProvider
ResultObjectProvider.next()
, ResultObjectProvider.absolute(int)
, or ResultObjectProvider.size()
.open
in interface ResultObjectProvider
public java.lang.Object getResultObject() throws java.sql.SQLException
ResultObjectProvider
ResultObjectProvider.next()
or ResultObjectProvider.absolute(int)
.getResultObject
in interface ResultObjectProvider
java.sql.SQLException
public boolean next() throws java.sql.SQLException
ResultObjectProvider
true
if
there is more data; otherwise false
.next
in interface ResultObjectProvider
java.sql.SQLException
public boolean absolute(int pos) throws java.sql.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
java.sql.SQLException
public int size() throws java.sql.SQLException
ResultObjectProvider
Integer.MAX_VALUE
if the size in unknown.size
in interface ResultObjectProvider
java.sql.SQLException
public void reset()
ResultObjectProvider
reset
in interface ResultObjectProvider
public void close()
ResultObjectProvider
close
in interface ResultObjectProvider
close
in interface Closeable
public void handleCheckedException(java.lang.Exception e)
ResultObjectProvider
handleCheckedException
in interface ResultObjectProvider
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.