org.apache.openjpa.jdbc.kernel
Class SelectResultObjectProvider
java.lang.Object
   org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
- All Implemented Interfaces: 
- ResultObjectProvider, Closeable
- Direct Known Subclasses: 
- InstanceResultObjectProvider, PagingResultObjectProvider
- public abstract class SelectResultObjectProvider 
- extends java.lang.Object- implements ResultObjectProvider
Abstract provider implementation wrapped around a Select.
- Author:
- Abe White
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
SelectResultObjectProvider
public SelectResultObjectProvider(SelectExecutor sel,
                                  JDBCStore store,
                                  JDBCFetchConfiguration fetch)
- Constructor.
 
- Parameters:
- sel- the select to execute
- store- the store to delegate loading to
- fetch- the fetch configuration, or null for the default
 
getSelect
public SelectExecutor getSelect()
- 
 
- 
 
getStore
public JDBCStore getStore()
- 
 
- 
 
getFetchConfiguration
public JDBCFetchConfiguration getFetchConfiguration()
- 
 
- 
 
getResult
public Result getResult()
- 
 
- 
 
supportsRandomAccess
public boolean supportsRandomAccess()
- 
- Specified by:
- supportsRandomAccessin interface- ResultObjectProvider
 
- 
 
open
public void open()
          throws java.sql.SQLException
- 
- Specified by:
- openin 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
 
setSize
protected void setSize(int size)
- Allow subclasses that know the size to set it; otherwise we calculate
 it internally.
 
- 
 
- 
 
reset
public void reset()
           throws java.sql.SQLException
- 
- Specified by:
- resetin interface- ResultObjectProvider
 
- 
- Throws:
- java.sql.SQLException
 
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.