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
Method Summary |
void |
open()
Open the result. |
Methods inherited from class org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider |
absolute, close, getFetchConfiguration, getResult, getSelect, getStore, handleCheckedException, next, reset, setSize, size, supportsRandomAccess |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
open
public void open()
throws SQLException
- Description copied from interface:
ResultObjectProvider
- Open the result. This will be called before
ResultObjectProvider.next()
, ResultObjectProvider.absolute(int)
, or ResultObjectProvider.size()
.
- Specified by:
open
in interface ResultObjectProvider
- Overrides:
open
in class SelectResultObjectProvider
- Throws:
SQLException
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.