public abstract class AbstractReturningWork<T> extends Object implements ReturningWork<T>, WorkExecutorVisitable<T>
ReturningWork that accepts a WorkExecutor
 visitor for executing a discrete piece of work and returning a result.
 This class is intended to be used for work that returns a value when executed.| Constructor and Description | 
|---|
| AbstractReturningWork() | 
| Modifier and Type | Method and Description | 
|---|---|
| T | accept(WorkExecutor<T> executor,
      Connection connection)Accepts a  WorkExecutorvisitor for executing the discrete work
 encapsulated by this work instance using the supplied connection. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic T accept(WorkExecutor<T> executor, Connection connection) throws SQLException
WorkExecutor visitor for executing the discrete work
 encapsulated by this work instance using the supplied connection.accept in interface WorkExecutorVisitable<T>executor - The visitor that executes the workconnection - The connection on which to perform the work.ReturningWork.execute(java.sql.Connection).SQLException - Thrown during execution of the underlying JDBC interaction.HibernateException - Generally indicates a wrapped SQLException.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.