GigaSpaces XAP 9.7.2 API

org.openspaces.jpa.openjpa.query
Class SpaceProjectionResultObjectProvider

java.lang.Object
  extended by org.openspaces.jpa.openjpa.query.SpaceProjectionResultObjectProvider
All Implemented Interfaces:
org.apache.openjpa.lib.rop.ResultObjectProvider, org.apache.openjpa.lib.util.Closeable

public class SpaceProjectionResultObjectProvider
extends Object
implements org.apache.openjpa.lib.rop.ResultObjectProvider

A wrapper for holding JPQL projection query result set (aggregation...)

Since:
8.0
Author:
idan

Constructor Summary
SpaceProjectionResultObjectProvider(Object[][] result)
           
 
Method Summary
 boolean absolute(int pos)
           
 void close()
           
 Object getResultObject()
          Gets the current result as a Pojo initiated with a state manager.
 void handleCheckedException(Exception e)
           
 boolean next()
           
 void open()
           
 void reset()
           
 int size()
           
 boolean supportsRandomAccess()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceProjectionResultObjectProvider

public SpaceProjectionResultObjectProvider(Object[][] result)
Method Detail

absolute

public boolean absolute(int pos)
                 throws Exception
Specified by:
absolute in interface org.apache.openjpa.lib.rop.ResultObjectProvider
Throws:
Exception

close

public void close()
           throws Exception
Specified by:
close in interface org.apache.openjpa.lib.rop.ResultObjectProvider
Specified by:
close in interface org.apache.openjpa.lib.util.Closeable
Throws:
Exception

getResultObject

public Object getResultObject()
                       throws Exception
Gets the current result as a Pojo initiated with a state manager.

Specified by:
getResultObject in interface org.apache.openjpa.lib.rop.ResultObjectProvider
Throws:
Exception

handleCheckedException

public void handleCheckedException(Exception e)
Specified by:
handleCheckedException in interface org.apache.openjpa.lib.rop.ResultObjectProvider

next

public boolean next()
             throws Exception
Specified by:
next in interface org.apache.openjpa.lib.rop.ResultObjectProvider
Throws:
Exception

open

public void open()
          throws Exception
Specified by:
open in interface org.apache.openjpa.lib.rop.ResultObjectProvider
Throws:
Exception

reset

public void reset()
           throws Exception
Specified by:
reset in interface org.apache.openjpa.lib.rop.ResultObjectProvider
Throws:
Exception

size

public int size()
         throws Exception
Specified by:
size in interface org.apache.openjpa.lib.rop.ResultObjectProvider
Throws:
Exception

supportsRandomAccess

public boolean supportsRandomAccess()
Specified by:
supportsRandomAccess in interface org.apache.openjpa.lib.rop.ResultObjectProvider

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.