org.openspaces.jpa.openjpa.query
Class SpaceResultObjectProvider
java.lang.Object
  
org.openspaces.jpa.openjpa.query.SpaceResultObjectProvider
- All Implemented Interfaces: 
 - org.apache.openjpa.lib.rop.ResultObjectProvider, org.apache.openjpa.lib.util.Closeable
 
public class SpaceResultObjectProvider
- extends Object
- implements org.apache.openjpa.lib.rop.ResultObjectProvider
  
A wrapper for holding JPQL queries result set.
 The getResultObject() method should initiate a state manager for the loaded object.
- Since:
 
  - 8.0
 
- Author:
 
  - idan
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SpaceResultObjectProvider
public SpaceResultObjectProvider(org.apache.openjpa.meta.ClassMetaData classMetaData,
                                 Object[] result,
                                 StoreManager store)
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
 
 
Copyright © GigaSpaces.