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