org.openspaces.persistency.hibernate.iterator
Class DefaultListQueryDataIterator
java.lang.Object
  
org.openspaces.persistency.hibernate.iterator.DefaultListQueryDataIterator
- All Implemented Interfaces: 
 - DataIterator, Iterator
 
public class DefaultListQueryDataIterator
- extends Object
- implements DataIterator
  
A simple iterator that iterates over a SQLQuery by creating
 an Hiberante query using Hibernate Session and listing it.
- Author:
 
  - kimchy
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
sqlQuery
protected final SQLQuery sqlQuery
entityName
protected final String entityName
sessionFactory
protected final org.hibernate.SessionFactory sessionFactory
from
protected final int from
size
protected final int size
transaction
protected org.hibernate.Transaction transaction
session
protected org.hibernate.Session session
DefaultListQueryDataIterator
public DefaultListQueryDataIterator(SQLQuery sqlQuery,
                                    org.hibernate.SessionFactory sessionFactory)
DefaultListQueryDataIterator
public DefaultListQueryDataIterator(String entityName,
                                    org.hibernate.SessionFactory sessionFactory)
DefaultListQueryDataIterator
public DefaultListQueryDataIterator(String entityName,
                                    org.hibernate.SessionFactory sessionFactory,
                                    int from,
                                    int size)
DefaultListQueryDataIterator
public DefaultListQueryDataIterator(SQLQuery sqlQuery,
                                    org.hibernate.SessionFactory sessionFactory,
                                    int from,
                                    int size)
hasNext
public boolean hasNext()
- Specified by:
 hasNext in interface Iterator
 
 
next
public Object 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: 
DataIterator 
- Clean up after any resources associated with this iterator
 The iterator can be closed even if the iterator wasn't iterated over all of its elements.
- Specified by:
 close in interface DataIterator
 
 
 
createIterator
protected Iterator createIterator()
 
 
createIterator
protected Iterator createIterator(org.hibernate.Query query)
 
 
Copyright © GigaSpaces.