com.gigaspaces.hibernate
Class HibernateCacheIterator<T>

java.lang.Object
  extended by com.gigaspaces.hibernate.HibernateCacheIterator<T>
All Implemented Interfaces:
CacheIterator, Iterator

public class HibernateCacheIterator<T>
extends Object
implements CacheIterator

This class used to fetch data from the database using an iterator. This allows the space to load only the necessary data a query is called or when there are multiple candidates for a match

Since:
5.1

Constructor Summary
HibernateCacheIterator()
           
HibernateCacheIterator(org.hibernate.Query query, org.hibernate.SessionFactory sessionFactory, org.hibernate.Session session)
           
 
Method Summary
 void close()
          Closes the iteration.
 boolean hasNext()
           
 IGSEntry next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateCacheIterator

public HibernateCacheIterator()

HibernateCacheIterator

public HibernateCacheIterator(org.hibernate.Query query,
                              org.hibernate.SessionFactory sessionFactory,
                              org.hibernate.Session session)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public IGSEntry next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

close

public void close()
Description copied from interface: CacheIterator
Closes the iteration. Called when enough candidates have been found to satisfy the query limit. Implementors should free up all excess resources.

Specified by:
close in interface CacheIterator