Package org.apache.openjpa.jdbc.kernel
Class PreparedResultObjectProvider
java.lang.Object
org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider
org.apache.openjpa.jdbc.kernel.PreparedResultObjectProvider
- All Implemented Interfaces:
ResultObjectProvider
,Closeable
A Select-oriented Result Object Provider whose Select has been executed
outside its own scope.
- Author:
- Pinaki Poddar
-
Field Summary
Fields inherited from class org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
_res
-
Constructor Summary
ConstructorDescriptionPreparedResultObjectProvider
(SelectExecutor sel, ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Result res) Constructor. -
Method Summary
Methods inherited from class org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider
getResultObject
Methods inherited from class org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
absolute, close, getFetchConfiguration, getResult, getSelect, getStore, handleCheckedException, next, reset, setSize, size, supportsRandomAccess
-
Constructor Details
-
PreparedResultObjectProvider
public PreparedResultObjectProvider(SelectExecutor sel, ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Result res) Constructor.- Parameters:
sel
- the select to executestore
- the store to delegate loading tofetch
- the fetch configuration, or null for the defaultres
- the result of the given select
-
-
Method Details
-
open
Description copied from interface:ResultObjectProvider
Open the result. This will be called beforeResultObjectProvider.next()
,ResultObjectProvider.absolute(int)
, orResultObjectProvider.size()
.- Specified by:
open
in interfaceResultObjectProvider
- Overrides:
open
in classSelectResultObjectProvider
- Throws:
SQLException
-