Class IteratorHibernateCallback<T>
- java.lang.Object
-
- com.atlassian.bamboo.hibernate.callbacks.IteratorHibernateCallback<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IteratorHibernateCallback(int fetchSize)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract @NotNull org.hibernate.query.Query
configureQuery(@NotNull org.hibernate.Session session)
Create and configure query which will be used as a source for iterationInteger
doInHibernate(org.hibernate.Session session)
abstract void
nextResultItem(@NotNull org.hibernate.Session session, T item, int count)
Perform operation on the cursor row
-
-
-
Method Detail
-
doInHibernate
public Integer doInHibernate(org.hibernate.Session session) throws org.hibernate.HibernateException
- Specified by:
doInHibernate
in interfaceorg.springframework.orm.hibernate5.HibernateCallback<T>
- Throws:
org.hibernate.HibernateException
-
configureQuery
@NotNull public abstract @NotNull org.hibernate.query.Query configureQuery(@NotNull @NotNull org.hibernate.Session session) throws org.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:
org.hibernate.HibernateException
- when something went wrong
-
nextResultItem
public abstract void nextResultItem(@NotNull @NotNull org.hibernate.Session session, @NotNull T item, int count) throws org.hibernate.HibernateException
Perform operation on the cursor row- Parameters:
session
- Hibernate session objectitem
- cursor row- Throws:
org.hibernate.HibernateException
- when something went wrong
-
-