org.springframework.orm.hibernate
Class IteratorHibernateCallback<T>
java.lang.Object
org.springframework.orm.hibernate.IteratorHibernateCallback<T>
- All Implemented Interfaces:
- org.springframework.orm.hibernate.HibernateCallback
public abstract class IteratorHibernateCallback<T>
- extends java.lang.Object
- implements org.springframework.orm.hibernate.HibernateCallback
Method Summary |
abstract net.sf.hibernate.Query |
configureQuery(net.sf.hibernate.Session session)
Create and configure query which will be used as a source for iteration |
java.lang.Integer |
doInHibernate(net.sf.hibernate.Session session)
|
abstract void |
nextResultItem(net.sf.hibernate.Session session,
T item,
int count)
Perform operation on the cursor row |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorHibernateCallback
protected IteratorHibernateCallback(int fetchSize)
doInHibernate
public java.lang.Integer doInHibernate(net.sf.hibernate.Session session)
throws net.sf.hibernate.HibernateException,
java.sql.SQLException
- Specified by:
doInHibernate
in interface org.springframework.orm.hibernate.HibernateCallback
- Throws:
net.sf.hibernate.HibernateException
java.sql.SQLException
configureQuery
@NotNull
public abstract net.sf.hibernate.Query configureQuery(@NotNull
net.sf.hibernate.Session session)
throws net.sf.hibernate.HibernateException
- Create and configure query which will be used as a source for iteration
- Parameters:
session
- Hibernate session object
- Returns:
- Hibernate Query object
- Throws:
net.sf.hibernate.HibernateException
- when something went wrong
nextResultItem
public abstract void nextResultItem(@NotNull
net.sf.hibernate.Session session,
@NotNull
T item,
int count)
throws net.sf.hibernate.HibernateException
- Perform operation on the cursor row
- Parameters:
session
- Hibernate session objectitem
- cursor row
- Throws:
net.sf.hibernate.HibernateException
- when something went wrong
Copyright © 2012 Atlassian. All Rights Reserved.