| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_FETCH_SIZE |
| Constructor and Description |
|---|
ScrollHibernateCallback() |
ScrollHibernateCallback(int fetchSize,
org.hibernate.ScrollMode scrollMode) |
| Modifier and Type | Method and 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 ScrollableResults
|
Long |
doInHibernate(org.hibernate.Session session) |
abstract void |
nextScrollableResult(@NotNull org.hibernate.Session session,
@NotNull org.hibernate.ScrollableResults data)
Perform operation on the cursor row
|
public static final int DEFAULT_FETCH_SIZE
public ScrollHibernateCallback(int fetchSize,
org.hibernate.ScrollMode scrollMode)
public ScrollHibernateCallback()
public Long doInHibernate(org.hibernate.Session session) throws org.hibernate.HibernateException
doInHibernate in interface org.springframework.orm.hibernate5.HibernateCallback<Long>org.hibernate.HibernateException@NotNull
public abstract @NotNull org.hibernate.query.Query configureQuery(@NotNull
@NotNull org.hibernate.Session session)
throws org.hibernate.HibernateException
session - Hibernate session objectorg.hibernate.HibernateException - when something went wrongpublic abstract void nextScrollableResult(@NotNull
@NotNull org.hibernate.Session session,
@NotNull
@NotNull org.hibernate.ScrollableResults data)
throws org.hibernate.HibernateException
session - Hibernate session objectdata - cursor roworg.hibernate.HibernateException - when something went wrongCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.