org.springframework.orm.hibernate
Class ScrollHibernateCallback
java.lang.Object
org.springframework.orm.hibernate.ScrollHibernateCallback
- All Implemented Interfaces:
- org.springframework.orm.hibernate3.HibernateCallback<Long>
public abstract class ScrollHibernateCallback
- extends Object
- implements org.springframework.orm.hibernate3.HibernateCallback<Long>
Method Summary |
abstract org.hibernate.Query |
configureQuery(org.hibernate.Session session)
Create and configure query which will be used as a source for ScrollableResults |
Long |
doInHibernate(org.hibernate.Session session)
|
abstract void |
nextScrollableResult(org.hibernate.Session session,
org.hibernate.ScrollableResults data)
Perform operation on the cursor row |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FETCH_SIZE
public static final int DEFAULT_FETCH_SIZE
- See Also:
- Constant Field Values
ScrollHibernateCallback
public ScrollHibernateCallback(int fetchSize,
org.hibernate.ScrollMode scrollMode)
ScrollHibernateCallback
public ScrollHibernateCallback()
doInHibernate
public Long doInHibernate(org.hibernate.Session session)
throws org.hibernate.HibernateException,
SQLException
- Specified by:
doInHibernate
in interface org.springframework.orm.hibernate3.HibernateCallback<Long>
- Throws:
org.hibernate.HibernateException
SQLException
configureQuery
@NotNull
public abstract org.hibernate.Query configureQuery(@NotNull
org.hibernate.Session session)
throws org.hibernate.HibernateException
- Create and configure query which will be used as a source for ScrollableResults
- Parameters:
session
- Hibernate session object
- Returns:
- Hibernate Query object
- Throws:
org.hibernate.HibernateException
- when something went wrong
nextScrollableResult
public abstract void nextScrollableResult(@NotNull
org.hibernate.Session session,
@NotNull
org.hibernate.ScrollableResults data)
throws org.hibernate.HibernateException
- Perform operation on the cursor row
- Parameters:
session
- Hibernate session objectdata
- cursor row
- Throws:
org.hibernate.HibernateException
- when something went wrong
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.