org.openspaces.persistency.hibernate.iterator
Class StatelessChunkScrollableDataIterator
java.lang.Object
  
org.openspaces.persistency.hibernate.iterator.AbstractChunkDataIterator
      
org.openspaces.persistency.hibernate.iterator.StatelessChunkScrollableDataIterator
- All Implemented Interfaces: 
 - DataIterator, Iterator, MultiDataIterator
 
public class StatelessChunkScrollableDataIterator
- extends AbstractChunkDataIterator
 
A stateless batch iterator that is based on StatelessScrollableDataIterator
 for each chunk.
- Author:
 
  - kimchy
 
 
 
| 
Constructor Summary | 
StatelessChunkScrollableDataIterator(SQLQuery sqlQuery,
                                     org.hibernate.SessionFactory sessionFactory,
                                     int fetchSize,
                                     boolean performOrderById,
                                     int chunkSize)
 
          Constructs a scrollable iterator over the given GigaSpaces SQLQuery. | 
StatelessChunkScrollableDataIterator(String entityName,
                                     org.hibernate.SessionFactory sessionFactory,
                                     int fetchSize,
                                     boolean performOrderById,
                                     int chunkSize)
 
          Constructs a scrollable iterator over the given entity name. | 
StatelessChunkScrollableDataIterator(String hQuery,
                                     org.hibernate.SessionFactory sessionFactory,
                                     int fetchSize,
                                     int chunkSize)
 
          Constructs a scrollable iterator over the given hibernate query string. | 
 
| 
Method Summary | 
protected  DataIterator | 
createIteratorByEntityName(String entityName,
                           org.hibernate.SessionFactory sessionFactory,
                           int fetchSize,
                           boolean performOrderById,
                           int from,
                           int size)
 
            | 
protected  DataIterator | 
createIteratorByHibernateQuery(String hQuery,
                               org.hibernate.SessionFactory sessionFactory,
                               int fetchSize,
                               int from,
                               int size)
 
            | 
protected  DataIterator | 
createIteratorBySQLQuery(SQLQuery sqlQuery,
                         org.hibernate.SessionFactory sessionFactory,
                         int fetchSize,
                         boolean performOrderById,
                         int from,
                         int size)
 
            | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
StatelessChunkScrollableDataIterator
public StatelessChunkScrollableDataIterator(String entityName,
                                            org.hibernate.SessionFactory sessionFactory,
                                            int fetchSize,
                                            boolean performOrderById,
                                            int chunkSize)
- Constructs a scrollable iterator over the given entity name.
- Parameters:
 entityName - The entity name to scroll oversessionFactory - The session factory to use to construct the sessionfetchSize - The fetch size of the scrollabale result setperformOrderById - Should the query perform order by id or notchunkSize - The size of the chunks the entity table will be broken to
 
StatelessChunkScrollableDataIterator
public StatelessChunkScrollableDataIterator(SQLQuery sqlQuery,
                                            org.hibernate.SessionFactory sessionFactory,
                                            int fetchSize,
                                            boolean performOrderById,
                                            int chunkSize)
- Constructs a scrollable iterator over the given GigaSpaces 
SQLQuery.
- Parameters:
 sqlQuery - The SQLQuery to scroll oversessionFactory - The session factory to use to construct the sessionfetchSize - The fetch size of the scrollabale result setperformOrderById - Should the query perform order by id or notchunkSize - The size of the chunks the entity table will be broken to
 
StatelessChunkScrollableDataIterator
public StatelessChunkScrollableDataIterator(String hQuery,
                                            org.hibernate.SessionFactory sessionFactory,
                                            int fetchSize,
                                            int chunkSize)
- Constructs a scrollable iterator over the given hibernate query string.
- Parameters:
 hQuery - The hiberante query string to scroll oversessionFactory - The session factory to use to construct the sessionfetchSize - The fetch size of the scrollabale result setchunkSize - The size of the chunks the entity table will be broken to
 
createIteratorByEntityName
protected DataIterator createIteratorByEntityName(String entityName,
                                                  org.hibernate.SessionFactory sessionFactory,
                                                  int fetchSize,
                                                  boolean performOrderById,
                                                  int from,
                                                  int size)
- Specified by:
 createIteratorByEntityName in class AbstractChunkDataIterator
 
 
createIteratorBySQLQuery
protected DataIterator createIteratorBySQLQuery(SQLQuery sqlQuery,
                                                org.hibernate.SessionFactory sessionFactory,
                                                int fetchSize,
                                                boolean performOrderById,
                                                int from,
                                                int size)
- Specified by:
 createIteratorBySQLQuery in class AbstractChunkDataIterator
 
 
createIteratorByHibernateQuery
protected DataIterator createIteratorByHibernateQuery(String hQuery,
                                                      org.hibernate.SessionFactory sessionFactory,
                                                      int fetchSize,
                                                      int from,
                                                      int size)
- Specified by:
 createIteratorByHibernateQuery in class AbstractChunkDataIterator
 
 
Copyright © GigaSpaces.