org.apache.openjpa.jdbc.kernel
Class PreparedResultObjectProvider

java.lang.Object
  extended by org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
      extended by org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider
          extended by 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
PreparedResultObjectProvider(SelectExecutor sel, ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, Result res)
          Constructor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedResultObjectProvider

public PreparedResultObjectProvider(SelectExecutor sel,
                                    ClassMapping mapping,
                                    JDBCStore store,
                                    JDBCFetchConfiguration fetch,
                                    Result res)
Constructor.

Parameters:
sel - the select to execute
store - the store to delegate loading to
fetch - the fetch configuration, or null for the default
res - the result of the given select
Method Detail

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.