Package org.apache.openjpa.lib.rop
Interface BatchedResultObjectProvider
- All Superinterfaces:
Closeable
,ResultObjectProvider
- All Known Implementing Classes:
XROP
A provider for multiple result sets.
This provider acts as a container of other result providers. The underlying providers
contain the actual data and are
Designed for the specific purpose of getting results from the execution of Stored Procedures that can produce more than one result set and an optional update count. Few methods related to iterating multiple results and update count mirror the methods in JDBC
iterated
for the results, while this provider iterates over its underlying providers.
Designed for the specific purpose of getting results from the execution of Stored Procedures that can produce more than one result set and an optional update count. Few methods related to iterating multiple results and update count mirror the methods in JDBC
Statement
.
- Author:
- Pinaki Poddar
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the result of executing the underlying JDBC statement.getOut
(int position) Gets the next result object provider from its batch.int
Gets the count of records updated by the underlying JDBC statement.boolean
Affirms if this batch contains more results.Methods inherited from interface org.apache.openjpa.lib.rop.ResultObjectProvider
absolute, close, handleCheckedException, next, open, reset, size, supportsRandomAccess
-
Method Details
-
getResultObject
Gets the next result object provider from its batch.- Specified by:
getResultObject
in interfaceResultObjectProvider
- Throws:
Exception
-
hasMoreResults
boolean hasMoreResults()Affirms if this batch contains more results. -
getExecutionResult
boolean getExecutionResult()Gets the result of executing the underlying JDBC statement.- Returns:
- a boolean value whose semantics is same as
PreparedStatement.execute()
.
-
getUpdateCount
int getUpdateCount()Gets the count of records updated by the underlying JDBC statement.- Returns:
- an integer value whose semantics is same as
Statement.getUpdateCount()
.
-
getOut
-
getOut
-