Class ScrollHibernateCallback

java.lang.Object
com.atlassian.bamboo.hibernate.callbacks.ScrollHibernateCallback
All Implemented Interfaces:
org.springframework.orm.hibernate5.HibernateCallback<Long>

public abstract class ScrollHibernateCallback extends Object implements org.springframework.orm.hibernate5.HibernateCallback<Long>
  • Field Details

  • Constructor Details

    • ScrollHibernateCallback

      public ScrollHibernateCallback(int fetchSize, org.hibernate.ScrollMode scrollMode)
    • ScrollHibernateCallback

      public ScrollHibernateCallback()
  • Method Details

    • doInHibernate

      public Long doInHibernate(org.hibernate.Session session) throws org.hibernate.HibernateException
      Specified by:
      doInHibernate in interface org.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 object
      data - cursor row
      Throws:
      org.hibernate.HibernateException - when something went wrong