public class XROP extends Object implements BatchedResultObjectProvider
| Constructor and Description |
|---|
XROP(List<QueryResultMapping> mappings,
List<Class<?>> classes,
JDBCStore store,
JDBCFetchConfiguration fetch,
CallableStatement stmt) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int pos)
Returns false.
|
void |
close()
Closes the underlying statement.
|
boolean |
getExecutionResult()
Gets the result of executing the underlying JDBC statement.
|
Object |
getOut(int position) |
Object |
getOut(String name) |
ResultObjectProvider |
getResultObject()
Gets the current result set, wraps it with a
ResultSetResult, then wraps
again with appropriate ROP based on the result set mapping. |
int |
getUpdateCount()
Gets the update count, provided the current result of the statement is not a result set.
|
void |
handleCheckedException(Exception e)
Any checked exceptions that are thrown will be passed to this method.
|
boolean |
hasMoreResults()
Affirms if more result sets are available.
|
boolean |
next()
Throws exception.
|
void |
open()
Opens this provider by executing the underlying Statment.
|
void |
reset()
Throws exception.
|
int |
size()
Returns
-1. |
boolean |
supportsRandomAccess()
Does not support random access.
|
public XROP(List<QueryResultMapping> mappings, List<Class<?>> classes, JDBCStore store, JDBCFetchConfiguration fetch, CallableStatement stmt)
public boolean supportsRandomAccess()
supportsRandomAccess in interface ResultObjectProviderpublic void open()
throws Exception
open in interface ResultObjectProviderExceptionpublic ResultObjectProvider getResultObject() throws Exception
ResultSetResult, then wraps
again with appropriate ROP based on the result set mapping.
getResultObject in interface BatchedResultObjectProvidergetResultObject in interface ResultObjectProviderExceptionpublic void close()
throws Exception
close in interface ResultObjectProviderclose in interface CloseableExceptionpublic boolean hasMoreResults()
hasMoreResults in interface BatchedResultObjectProviderpublic boolean getExecutionResult()
BatchedResultObjectProvidergetExecutionResult in interface BatchedResultObjectProviderPreparedStatement.execute().public int getUpdateCount()
getUpdateCount in interface BatchedResultObjectProviderStatement.getUpdateCount().public Object getOut(String name)
getOut in interface BatchedResultObjectProviderpublic Object getOut(int position)
getOut in interface BatchedResultObjectProviderpublic boolean next()
throws Exception
next in interface ResultObjectProviderExceptionpublic boolean absolute(int pos)
throws Exception
absolute in interface ResultObjectProviderExceptionpublic int size()
throws Exception
-1.size in interface ResultObjectProviderExceptionpublic void reset()
throws Exception
reset in interface ResultObjectProviderExceptionpublic void handleCheckedException(Exception e)
ResultObjectProviderhandleCheckedException in interface ResultObjectProviderCopyright © 2006–2022 Apache Software Foundation. All rights reserved.