org.apache.openjpa.jdbc.kernel
Class GenericResultObjectProvider
java.lang.Object
   org.apache.openjpa.jdbc.kernel.GenericResultObjectProvider
org.apache.openjpa.jdbc.kernel.GenericResultObjectProvider
- All Implemented Interfaces: 
- ResultObjectProvider, Closeable
- public class GenericResultObjectProvider 
- extends java.lang.Object- implements ResultObjectProvider
Object provider implementation wrapped around a generic Result.
- Author:
- Abe White
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
GenericResultObjectProvider
public GenericResultObjectProvider(java.lang.Class pcClass,
                                   JDBCStore store,
                                   JDBCFetchConfiguration fetch,
                                   Result res)
- Constructor.
 
- Parameters:
- pcClass- the base class of the result objects
- store- the store manager to delegate loading to
- fetch- the fetch configuration, or null for default
- res- the result containing the data
 
GenericResultObjectProvider
public GenericResultObjectProvider(ClassMapping mapping,
                                   JDBCStore store,
                                   JDBCFetchConfiguration fetch,
                                   Result res)
- Constructor.
 
- Parameters:
- mapping- the mapping for the base class of the result objects
- store- the store manager to delegate loading to
- fetch- the fetch configuration, or null for default
- res- the result containing the data
 
supportsRandomAccess
public boolean supportsRandomAccess()
- 
- Specified by:
- supportsRandomAccessin interface- ResultObjectProvider
 
- 
 
open
public void open()
- 
- Specified by:
- openin interface- ResultObjectProvider
 
- 
 
getResultObject
public java.lang.Object getResultObject()
                                 throws java.sql.SQLException
- 
- Specified by:
- getResultObjectin interface- ResultObjectProvider
 
- 
- Throws:
- java.sql.SQLException
 
next
public boolean next()
             throws java.sql.SQLException
- 
- Specified by:
- nextin interface- ResultObjectProvider
 
- 
- Throws:
- java.sql.SQLException
 
absolute
public boolean absolute(int pos)
                 throws java.sql.SQLException
- 
- Specified by:
- absolutein interface- ResultObjectProvider
 
- 
- Throws:
- java.sql.SQLException
 
size
public int size()
         throws java.sql.SQLException
- 
- Specified by:
- sizein interface- ResultObjectProvider
 
- 
- Throws:
- java.sql.SQLException
 
reset
public void reset()
- 
- Specified by:
- resetin interface- ResultObjectProvider
 
- 
 
close
public void close()
- 
- Specified by:
- closein interface- ResultObjectProvider
- Specified by:
- closein interface- Closeable
 
- 
 
handleCheckedException
public void handleCheckedException(java.lang.Exception e)
- 
- Specified by:
- handleCheckedExceptionin interface- ResultObjectProvider
 
- 
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.