接口 WorkExecutorVisitable<T>
-
- 所有已知实现类:
AbstractReturningWork,AbstractWork
public interface WorkExecutorVisitable<T>This interface provides a way to execute unrelated "work" objects using polymorphism. Instances of this interface can accept aWorkExecutorvisitor for executing a discrete piece of work, and return an implementation-defined result.- 作者:
- Gail Badner
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Taccept(WorkExecutor<T> executor, Connection connection)Accepts aWorkExecutorvisitor for executing a discrete piece of work, and returns an implementation-defined result..
-
-
-
方法详细资料
-
accept
T accept(WorkExecutor<T> executor, Connection connection) throws SQLException
Accepts aWorkExecutorvisitor for executing a discrete piece of work, and returns an implementation-defined result..- 参数:
executor- The visitor that executes the work.connection- The connection on which to perform the work.- 返回:
- an implementation-defined result
- 抛出:
SQLException- Thrown during execution of the underlying JDBC interaction.HibernateException- Generally indicates a wrapped SQLException.
-
-