public class DefaultListQueryDataIterator extends Object implements DataIterator
SQLQuery
by creating
an Hiberante query using Hibernate Session
and listing it.Modifier and Type | Field and Description |
---|---|
protected com.gigaspaces.datasource.DataSourceSQLQuery |
dataSourceSQLQuery |
protected String |
entityName |
protected int |
from |
protected org.hibernate.Session |
session |
protected org.hibernate.SessionFactory |
sessionFactory |
protected int |
size |
protected SQLQuery<?> |
sqlQuery |
protected org.hibernate.Transaction |
transaction |
Constructor and Description |
---|
DefaultListQueryDataIterator(com.gigaspaces.datasource.DataSourceSQLQuery dataSourceSQLQuery,
org.hibernate.SessionFactory sessionFactory) |
DefaultListQueryDataIterator(SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory) |
DefaultListQueryDataIterator(SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory,
int from,
int size) |
DefaultListQueryDataIterator(String entityName,
org.hibernate.SessionFactory sessionFactory) |
DefaultListQueryDataIterator(String entityName,
org.hibernate.SessionFactory sessionFactory,
int from,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
close()
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.
|
protected Iterator |
createIterator() |
protected Iterator |
createIterator(org.hibernate.Query query) |
boolean |
hasNext() |
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final SQLQuery<?> sqlQuery
protected final com.gigaspaces.datasource.DataSourceSQLQuery dataSourceSQLQuery
protected final String entityName
protected final org.hibernate.SessionFactory sessionFactory
protected final int from
protected final int size
protected org.hibernate.Transaction transaction
protected org.hibernate.Session session
public DefaultListQueryDataIterator(SQLQuery sqlQuery, org.hibernate.SessionFactory sessionFactory)
public DefaultListQueryDataIterator(String entityName, org.hibernate.SessionFactory sessionFactory)
public DefaultListQueryDataIterator(com.gigaspaces.datasource.DataSourceSQLQuery dataSourceSQLQuery, org.hibernate.SessionFactory sessionFactory)
public DefaultListQueryDataIterator(String entityName, org.hibernate.SessionFactory sessionFactory, int from, int size)
public DefaultListQueryDataIterator(SQLQuery sqlQuery, org.hibernate.SessionFactory sessionFactory, int from, int size)
public void close()
DataIterator
close
in interface DataIterator
protected Iterator createIterator()
protected Iterator createIterator(org.hibernate.Query query)
Copyright © GigaSpaces.