Package org.apache.openjpa.jdbc.kernel
Class InstanceResultObjectProvider
java.lang.Object
org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider
- All Implemented Interfaces:
ResultObjectProvider
,Closeable
- Direct Known Subclasses:
PreparedResultObjectProvider
Object provider implementation wrapped around a
Select
.- Author:
- Abe White
-
Field Summary
Fields inherited from class org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
_res
-
Constructor Summary
ConstructorDescriptionInstanceResultObjectProvider
(SelectExecutor sel, ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionInstantiate the current result object.Methods inherited from class org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
absolute, close, getFetchConfiguration, getResult, getSelect, getStore, handleCheckedException, next, open, reset, setSize, size, supportsRandomAccess
-
Constructor Details
-
InstanceResultObjectProvider
public InstanceResultObjectProvider(SelectExecutor sel, ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch) Constructor.- Parameters:
sel
- the select to executemapping
- the mapping for the base class of the result objectsstore
- the store to delegate loading tofetch
- the fetch configuration, or null for default
-
-
Method Details
-
getResultObject
Description copied from interface:ResultObjectProvider
Instantiate the current result object. This method will only be called afterResultObjectProvider.next()
orResultObjectProvider.absolute(int)
.- Throws:
SQLException
-