public class DefaultScrollableDataIterator extends AbstractScrollableDataIterator
Session
.Modifier and Type | Field and Description |
---|---|
protected org.hibernate.Session |
session |
protected org.hibernate.Transaction |
transaction |
entityName, fetchSize, from, hQuery, perfromOrderById, sessionFactory, size, sqlQuery
Constructor and Description |
---|
DefaultScrollableDataIterator(SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById)
Constructs a scrollable iterator over the given GigaSpaces
SQLQuery . |
DefaultScrollableDataIterator(SQLQuery sqlQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int from,
int size)
Constructs a scrollable iterator over the given GigaSpaces
SQLQuery . |
DefaultScrollableDataIterator(String hQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize)
Constructs a scrollable iterator over the given hibernate query string.
|
DefaultScrollableDataIterator(String entityName,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById)
Constructs a scrollable iterator over the given entity name.
|
DefaultScrollableDataIterator(String entityName,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
boolean performOrderById,
int from,
int size)
Constructs a scrollable iterator over the given entity name.
|
DefaultScrollableDataIterator(String hQuery,
org.hibernate.SessionFactory sessionFactory,
int fetchSize,
int from,
int size)
Constructs a scrollable iterator over the given hibernate query string.
|
Modifier and Type | Method and Description |
---|---|
protected void |
clear() |
protected org.hibernate.ScrollableResults |
createCursor() |
protected void |
doClose() |
close, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected org.hibernate.Session session
protected org.hibernate.Transaction transaction
public DefaultScrollableDataIterator(String entityName, org.hibernate.SessionFactory sessionFactory, int fetchSize, boolean performOrderById)
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 notpublic DefaultScrollableDataIterator(String entityName, org.hibernate.SessionFactory sessionFactory, int fetchSize, boolean performOrderById, int from, int size)
entityName
- The entity name to scroll oversessionFactory
- The session factory to use to constrcut the sessionfetchSize
- The fetch size of the scrollable result setperformOrderById
- Should the query perform order by id or notfrom
- The from index to scroll fromsize
- The size of data to scroll topublic DefaultScrollableDataIterator(SQLQuery sqlQuery, org.hibernate.SessionFactory sessionFactory, int fetchSize, boolean performOrderById)
SQLQuery
.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 notpublic DefaultScrollableDataIterator(SQLQuery sqlQuery, org.hibernate.SessionFactory sessionFactory, int fetchSize, boolean performOrderById, int from, int size)
SQLQuery
.sqlQuery
- The SQLQuery
to scroll oversessionFactory
- The session factory to use to constrcut the sessionfetchSize
- The fetch size of the scrollable result setperformOrderById
- Should the query perform order by id or notfrom
- The from index to scroll fromsize
- The size of data to scroll topublic DefaultScrollableDataIterator(String hQuery, org.hibernate.SessionFactory sessionFactory, int fetchSize)
hQuery
- The hiberante query string to scroll oversessionFactory
- The session factory to use to construct the sessionfetchSize
- The fetch size of the scrollabale result setpublic DefaultScrollableDataIterator(String hQuery, org.hibernate.SessionFactory sessionFactory, int fetchSize, int from, int size)
hQuery
- The hiberante query string to scroll oversessionFactory
- The session factory to use to constrcut the sessionfetchSize
- The fetch size of the scrollable result setfrom
- The from index to scroll fromsize
- The size of data to scroll toprotected void doClose()
doClose
in class AbstractScrollableDataIterator
protected void clear()
clear
in class AbstractScrollableDataIterator
protected org.hibernate.ScrollableResults createCursor()
createCursor
in class AbstractScrollableDataIterator
Copyright © GigaSpaces.