Class AbstractReturningWork<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T accept​(WorkExecutor<T> executor, java.sql.Connection connection)
      Accepts a WorkExecutor visitor for executing the discrete work encapsulated by this work instance using the supplied connection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractReturningWork

        public AbstractReturningWork()
    • Method Detail

      • accept

        public T accept​(WorkExecutor<T> executor,
                        java.sql.Connection connection)
                 throws java.sql.SQLException
        Accepts a WorkExecutor visitor for executing the discrete work encapsulated by this work instance using the supplied connection.
        Specified by:
        accept in interface WorkExecutorVisitable<T>
        Parameters:
        executor - The visitor that executes the work
        connection - The connection on which to perform the work.
        Returns:
        the valued returned by ReturningWork.execute(java.sql.Connection).
        Throws:
        java.sql.SQLException - Thrown during execution of the underlying JDBC interaction.
        HibernateException - Generally indicates a wrapped SQLException.