类 AbstractWork
- java.lang.Object
-
- org.hibernate.jdbc.AbstractWork
-
- 所有已实现的接口:
Work,WorkExecutorVisitable<Void>
public abstract class AbstractWork extends Object implements Work, WorkExecutorVisitable<Void>
An abstract implementation ofWorkthat accepts aWorkExecutorvisitor for executing a discrete piece of work. This class is intended to be used for work that does not return a value when executed.- 作者:
- Gail Badner
-
-
构造器概要
构造器 构造器 说明 AbstractWork()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Voidaccept(WorkExecutor<Void> executor, Connection connection)Accepts aWorkExecutorvisitor for executing the discrete work encapsulated by this work instance using the supplied connection.
-
-
-
方法详细资料
-
accept
public Void accept(WorkExecutor<Void> executor, Connection connection) throws SQLException
Accepts aWorkExecutorvisitor for executing the discrete work encapsulated by this work instance using the supplied connection. BecauseWorkdoes not return a value when executed (viaWork.execute(java.sql.Connection), this method always returns null.- 指定者:
accept在接口中WorkExecutorVisitable<Void>- 参数:
connection- The connection on which to perform the work.executor- The visitor that executes the work.- 返回:
- null
- 抛出:
SQLException- Thrown during execution of the underlying JDBC interaction.HibernateException- Generally indicates a wrapped SQLException.
-
-