Package org.apache.openjpa.kernel
Class QueryImpl.PackingResultObjectProvider
- java.lang.Object
-
- org.apache.openjpa.kernel.QueryImpl.PackingResultObjectProvider
-
- All Implemented Interfaces:
org.apache.openjpa.lib.rop.ResultObjectProvider
,org.apache.openjpa.lib.util.Closeable
- Enclosing class:
- QueryImpl
public static class QueryImpl.PackingResultObjectProvider extends java.lang.Object implements org.apache.openjpa.lib.rop.ResultObjectProvider
Result object provider that packs results before returning them.
-
-
Constructor Summary
Constructors Constructor Description PackingResultObjectProvider(org.apache.openjpa.lib.rop.ResultObjectProvider delegate, ResultPacker packer, int resultLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
absolute(int pos)
void
close()
org.apache.openjpa.lib.rop.ResultObjectProvider
getDelegate()
java.lang.Object
getResultObject()
void
handleCheckedException(java.lang.Exception e)
boolean
next()
void
open()
void
reset()
int
size()
boolean
supportsRandomAccess()
-
-
-
Constructor Detail
-
PackingResultObjectProvider
public PackingResultObjectProvider(org.apache.openjpa.lib.rop.ResultObjectProvider delegate, ResultPacker packer, int resultLength)
-
-
Method Detail
-
supportsRandomAccess
public boolean supportsRandomAccess()
- Specified by:
supportsRandomAccess
in interfaceorg.apache.openjpa.lib.rop.ResultObjectProvider
-
open
public void open() throws java.lang.Exception
- Specified by:
open
in interfaceorg.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.lang.Exception
-
getResultObject
public java.lang.Object getResultObject() throws java.lang.Exception
- Specified by:
getResultObject
in interfaceorg.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.lang.Exception
-
next
public boolean next() throws java.lang.Exception
- Specified by:
next
in interfaceorg.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.lang.Exception
-
absolute
public boolean absolute(int pos) throws java.lang.Exception
- Specified by:
absolute
in interfaceorg.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.lang.Exception
-
size
public int size() throws java.lang.Exception
- Specified by:
size
in interfaceorg.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.lang.Exception
-
reset
public void reset() throws java.lang.Exception
- Specified by:
reset
in interfaceorg.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.lang.Exception
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfaceorg.apache.openjpa.lib.util.Closeable
- Specified by:
close
in interfaceorg.apache.openjpa.lib.rop.ResultObjectProvider
- Throws:
java.lang.Exception
-
handleCheckedException
public void handleCheckedException(java.lang.Exception e)
- Specified by:
handleCheckedException
in interfaceorg.apache.openjpa.lib.rop.ResultObjectProvider
-
getDelegate
public org.apache.openjpa.lib.rop.ResultObjectProvider getDelegate()
-
-