Class ScrollHibernateCallback
java.lang.Object
com.atlassian.bamboo.hibernate.callbacks.ScrollHibernateCallback
- All Implemented Interfaces:
org.springframework.orm.hibernate5.HibernateCallback<Long>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract @NotNull org.hibernate.query.Query
configureQuery
(@NotNull org.hibernate.Session session) Create and configure query which will be used as a source for ScrollableResultsdoInHibernate
(org.hibernate.Session session) abstract void
nextScrollableResult
(@NotNull org.hibernate.Session session, @NotNull org.hibernate.ScrollableResults data) Perform operation on the cursor row
-
Field Details
-
DEFAULT_FETCH_SIZE
public static final int DEFAULT_FETCH_SIZE- See Also:
-
-
Constructor Details
-
ScrollHibernateCallback
public ScrollHibernateCallback(int fetchSize, org.hibernate.ScrollMode scrollMode) -
ScrollHibernateCallback
public ScrollHibernateCallback()
-
-
Method Details
-
doInHibernate
- Specified by:
doInHibernate
in interfaceorg.springframework.orm.hibernate5.HibernateCallback<Long>
- 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 ScrollableResults- Parameters:
session
- Hibernate session object- Returns:
- Hibernate Query object
- Throws:
org.hibernate.HibernateException
- when something went wrong
-
nextScrollableResult
public abstract void nextScrollableResult(@NotNull @NotNull org.hibernate.Session session, @NotNull @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
-