org.apache.openjpa.jdbc.kernel
Class SelectResultObjectProvider
java.lang.Object
org.apache.openjpa.jdbc.kernel.SelectResultObjectProvider
- All Implemented Interfaces:
- org.apache.openjpa.lib.rop.ResultObjectProvider, org.apache.openjpa.lib.util.Closeable
- Direct Known Subclasses:
- InstanceResultObjectProvider, PagingResultObjectProvider
public abstract class SelectResultObjectProvider
- extends java.lang.Object
- implements org.apache.openjpa.lib.rop.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 |
Methods inherited from interface org.apache.openjpa.lib.rop.ResultObjectProvider |
getResultObject |
SelectResultObjectProvider
public SelectResultObjectProvider(SelectExecutor sel,
JDBCStore store,
JDBCFetchConfiguration fetch)
- Constructor.
- Parameters:
sel
- the select to executestore
- the store to delegate loading tofetch
- 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:
supportsRandomAccess
in interface org.apache.openjpa.lib.rop.ResultObjectProvider
open
public void open()
throws java.sql.SQLException
- Specified by:
open
in interface org.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.sql.SQLException
next
public boolean next()
throws java.sql.SQLException
- Specified by:
next
in interface org.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.sql.SQLException
absolute
public boolean absolute(int pos)
throws java.sql.SQLException
- Specified by:
absolute
in interface org.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.sql.SQLException
size
public int size()
throws java.sql.SQLException
- Specified by:
size
in interface org.apache.openjpa.lib.rop.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:
reset
in interface org.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.sql.SQLException
close
public void close()
- Specified by:
close
in interface org.apache.openjpa.lib.rop.ResultObjectProvider
- Specified by:
close
in interface org.apache.openjpa.lib.util.Closeable
handleCheckedException
public void handleCheckedException(java.lang.Exception e)
- Specified by:
handleCheckedException
in interface org.apache.openjpa.lib.rop.ResultObjectProvider
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.