类 AbstractReturningWork<T>
- java.lang.Object
-
- org.hibernate.jdbc.AbstractReturningWork<T>
-
- 所有已实现的接口:
ReturningWork<T>,WorkExecutorVisitable<T>
public abstract class AbstractReturningWork<T> extends Object implements ReturningWork<T>, WorkExecutorVisitable<T>
An abstract implementation ofReturningWorkthat accepts aWorkExecutorvisitor 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.- 作者:
- Gail Badner
-
-
构造器概要
构造器 构造器 说明 AbstractReturningWork()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Taccept(WorkExecutor<T> executor, Connection connection)Accepts aWorkExecutorvisitor for executing the discrete work encapsulated by this work instance using the supplied connection.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.jdbc.ReturningWork
execute
-
-
-
-
方法详细资料
-
accept
public T accept(WorkExecutor<T> executor, Connection connection) throws SQLException
Accepts aWorkExecutorvisitor for executing the discrete work encapsulated by this work instance using the supplied connection.- 指定者:
accept在接口中WorkExecutorVisitable<T>- 参数:
executor- The visitor that executes the workconnection- The connection on which to perform the work.- 返回:
- the valued returned by
ReturningWork.execute(java.sql.Connection). - 抛出:
SQLException- Thrown during execution of the underlying JDBC interaction.HibernateException- Generally indicates a wrapped SQLException.
-
-