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
public class PreparedResultObjectProvider extends InstanceResultObjectProvider
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
Constructors Constructor Description PreparedResultObjectProvider(SelectExecutor sel, ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
open()
Open the result.-
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 Detail
-
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 Detail
-
open
public void open() throws java.sql.SQLException
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:
java.sql.SQLException
-
-