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 ResultObjectProvider
public void open() throws Exception
open
in interface ResultObjectProvider
Exception
public ResultObjectProvider getResultObject() throws Exception
ResultSetResult
, then wraps
again with appropriate ROP based on the result set mapping.
getResultObject
in interface BatchedResultObjectProvider
getResultObject
in interface ResultObjectProvider
Exception
public void close() throws Exception
close
in interface ResultObjectProvider
close
in interface Closeable
Exception
public boolean hasMoreResults()
hasMoreResults
in interface BatchedResultObjectProvider
public boolean getExecutionResult()
BatchedResultObjectProvider
getExecutionResult
in interface BatchedResultObjectProvider
PreparedStatement.execute()
.public int getUpdateCount()
getUpdateCount
in interface BatchedResultObjectProvider
Statement.getUpdateCount()
.public Object getOut(String name)
getOut
in interface BatchedResultObjectProvider
public Object getOut(int position)
getOut
in interface BatchedResultObjectProvider
public boolean next() throws Exception
next
in interface ResultObjectProvider
Exception
public boolean absolute(int pos) throws Exception
absolute
in interface ResultObjectProvider
Exception
public int size() throws Exception
-1
.size
in interface ResultObjectProvider
Exception
public void reset() throws Exception
reset
in interface ResultObjectProvider
Exception
public void handleCheckedException(Exception e)
ResultObjectProvider
handleCheckedException
in interface ResultObjectProvider
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.