|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.persistency.hibernate.iterator.AbstractScrollableDataIterator org.openspaces.persistency.hibernate.iterator.DefaultScrollableDataIterator
public class DefaultScrollableDataIterator
A default scrollable result iterator based on Hibernate Session
.
Field Summary | |
---|---|
protected org.hibernate.Session |
session
|
protected org.hibernate.Transaction |
transaction
|
Fields inherited from class org.openspaces.persistency.hibernate.iterator.AbstractScrollableDataIterator |
---|
entityName, fetchSize, from, hQuery, perfromOrderById, sessionFactory, size, sqlQuery |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected void |
clear()
|
protected org.hibernate.ScrollableResults |
createCursor()
|
protected void |
doClose()
|
Methods inherited from class org.openspaces.persistency.hibernate.iterator.AbstractScrollableDataIterator |
---|
close, hasNext, next, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.hibernate.Session session
protected org.hibernate.Transaction transaction
Constructor Detail |
---|
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 toMethod Detail |
---|
protected void doClose()
doClose
in class AbstractScrollableDataIterator
protected void clear()
clear
in class AbstractScrollableDataIterator
protected org.hibernate.ScrollableResults createCursor()
createCursor
in class AbstractScrollableDataIterator
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |