public abstract class AbstractReturningWork<T> extends Object implements ReturningWork<T>, WorkExecutorVisitable<T>
ReturningWorkthat accepts a
WorkExecutorvisitor 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|
|Modifier and Type||Method and Description|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public T accept(WorkExecutor<T> executor, Connection connection) throws SQLException
WorkExecutorvisitor for executing the discrete work encapsulated by this work instance using the supplied connection.
executor- The visitor that executes the work
connection- The connection on which to perform the work.
SQLException- Thrown during execution of the underlying JDBC interaction.
HibernateException- Generally indicates a wrapped SQLException.
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.