org.apache.openjpa.jdbc.kernel
Class MappedQueryResultObjectProvider
java.lang.Object
org.apache.openjpa.jdbc.kernel.MappedQueryResultObjectProvider
- All Implemented Interfaces:
- ResultObjectProvider, Closeable
class MappedQueryResultObjectProvider
- extends Object
- implements ResultObjectProvider
Provides the data from query result mapped by a QueryResultMapping.
- Author:
- Pinaki Poddar, Abe White
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappedQueryResultObjectProvider
public MappedQueryResultObjectProvider(QueryResultMapping map,
JDBCStore store,
JDBCFetchConfiguration fetch,
Result res)
- Constructor.
- Parameters:
res - the result data
supportsRandomAccess
public boolean supportsRandomAccess()
- Specified by:
supportsRandomAccess in interface ResultObjectProvider
open
public void open()
- Specified by:
open in interface ResultObjectProvider
getResultObject
public Object getResultObject()
throws SQLException
- Specified by:
getResultObject in interface ResultObjectProvider
- Throws:
SQLException
next
public boolean next()
throws SQLException
- Specified by:
next in interface ResultObjectProvider
- Throws:
SQLException
absolute
public boolean absolute(int pos)
throws SQLException
- Specified by:
absolute in interface ResultObjectProvider
- Throws:
SQLException
size
public int size()
throws SQLException
- Specified by:
size in interface ResultObjectProvider
- Throws:
SQLException
reset
public void reset()
- Specified by:
reset in interface ResultObjectProvider
close
public void close()
- Specified by:
close in interface ResultObjectProvider- Specified by:
close in interface Closeable
handleCheckedException
public void handleCheckedException(Exception e)
- Specified by:
handleCheckedException in interface ResultObjectProvider
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.