com.gigaspaces.hibernate
Class HibernateCacheIterator<T>
java.lang.Object
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
HibernateCacheIterator
public HibernateCacheIterator()
HibernateCacheIterator
public HibernateCacheIterator(org.hibernate.Query query,
org.hibernate.SessionFactory sessionFactory,
org.hibernate.Session session)
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