Modifier | Constructor and Description |
---|---|
protected |
IteratorHibernateCallback(int fetchSize) |
Modifier and Type | Method and Description |
---|---|
abstract org.hibernate.Query |
configureQuery(org.hibernate.Session session)
Create and configure query which will be used as a source for iteration
|
Integer |
doInHibernate(org.hibernate.Session session) |
abstract void |
nextResultItem(org.hibernate.Session session,
T item,
int count)
Perform operation on the cursor row
|
public Integer doInHibernate(org.hibernate.Session session) throws org.hibernate.HibernateException
doInHibernate
in interface org.springframework.orm.hibernate5.HibernateCallback<Integer>
org.hibernate.HibernateException
@NotNull public abstract org.hibernate.Query configureQuery(@NotNull org.hibernate.Session session) throws org.hibernate.HibernateException
session
- Hibernate session objectorg.hibernate.HibernateException
- when something went wrongpublic abstract void nextResultItem(@NotNull org.hibernate.Session session, @NotNull T item, int count) throws org.hibernate.HibernateException
session
- Hibernate session objectitem
- cursor roworg.hibernate.HibernateException
- when something went wrongCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.