com.gigaspaces.datasource.hibernate
Class HibernateDataIterator<T>
java.lang.Object
com.gigaspaces.datasource.hibernate.HibernateDataIterator<T>
- All Implemented Interfaces:
- DataIterator<T>, Iterator<T>
public class HibernateDataIterator<T>
- extends Object
- implements DataIterator<T>
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:
- 6.0
Method Summary |
void |
close()
Clean up after any resources associated with this iterator |
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
HibernateDataIterator
public HibernateDataIterator(Iterator iter,
org.hibernate.Session session,
org.hibernate.Transaction tx)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<T>
next
public T next()
- Specified by:
next
in interface Iterator<T>
remove
public void remove()
- Specified by:
remove
in interface Iterator<T>
close
public void close()
- Description copied from interface:
DataIterator
- Clean up after any resources associated with this iterator
- Specified by:
close
in interface DataIterator<T>