Package org.apache.openjpa.kernel
Class QueryImpl.PackingResultObjectProvider
- java.lang.Object
-
- org.apache.openjpa.kernel.QueryImpl.PackingResultObjectProvider
-
- All Implemented Interfaces:
ResultObjectProvider
,Closeable
- Enclosing class:
- QueryImpl
public static class QueryImpl.PackingResultObjectProvider extends Object implements ResultObjectProvider
Result object provider that packs results before returning them.
-
-
Constructor Summary
Constructors Constructor Description PackingResultObjectProvider(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()
ResultObjectProvider
getDelegate()
Object
getResultObject()
void
handleCheckedException(Exception e)
boolean
next()
void
open()
void
reset()
int
size()
boolean
supportsRandomAccess()
-
-
-
Constructor Detail
-
PackingResultObjectProvider
public PackingResultObjectProvider(ResultObjectProvider delegate, ResultPacker packer, int resultLength)
-
-
Method Detail
-
supportsRandomAccess
public boolean supportsRandomAccess()
- Specified by:
supportsRandomAccess
in interfaceResultObjectProvider
-
open
public void open() throws Exception
- Specified by:
open
in interfaceResultObjectProvider
- Throws:
Exception
-
getResultObject
public Object getResultObject() throws Exception
- Specified by:
getResultObject
in interfaceResultObjectProvider
- Throws:
Exception
-
next
public boolean next() throws Exception
- Specified by:
next
in interfaceResultObjectProvider
- Throws:
Exception
-
absolute
public boolean absolute(int pos) throws Exception
- Specified by:
absolute
in interfaceResultObjectProvider
- Throws:
Exception
-
size
public int size() throws Exception
- Specified by:
size
in interfaceResultObjectProvider
- Throws:
Exception
-
reset
public void reset() throws Exception
- Specified by:
reset
in interfaceResultObjectProvider
- Throws:
Exception
-
close
public void close() throws Exception
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceResultObjectProvider
- Throws:
Exception
-
handleCheckedException
public void handleCheckedException(Exception e)
- Specified by:
handleCheckedException
in interfaceResultObjectProvider
-
getDelegate
public ResultObjectProvider getDelegate()
-
-