Top Description Constructors Methods
org.hibernate.jdbc

public abstract Class AbstractWork

extends Object
implements Work, WorkExecutorVisitable<Void>
Class Inheritance
All Implemented Interfaces
org.hibernate.jdbc.WorkExecutorVisitable, org.hibernate.jdbc.Work
Known Direct Subclasses
org.hibernate.dialect.temptable.TemporaryTableHelper.TemporaryTableCreationWork, org.hibernate.dialect.temptable.TemporaryTableHelper.TemporaryTableDropWork
Imports
java.sql.Connection, .SQLException

An abstract implementation of Work that accepts a WorkExecutor visitor for executing a discrete piece of work. This class is intended to be used for work that does not return a value when executed.
Author
Gail Badner

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Void

Returns:

null
accept
(WorkExecutor<Void>
The visitor that executes the work.
executor
,
Connection
The connection on which to perform the work.
connection
)

Implements org.hibernate.jdbc.WorkExecutorVisitable.accept.

Accepts a WorkExecutor visitor for executing the discrete work encapsulated by this work instance using the supplied connection.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractWorkback to summary
public AbstractWork()

Method Detail

acceptback to summary
public Void accept(WorkExecutor<Void> executor, Connection connection) throws SQLException

Implements org.hibernate.jdbc.WorkExecutorVisitable.accept.

Accepts a WorkExecutor visitor for executing the discrete work encapsulated by this work instance using the supplied connection. Because Work does not return a value when executed (via Work#execute(Connection), this method always returns null.

Parameters
executor:WorkExecutor<Void>

Doc from org.hibernate.jdbc.WorkExecutorVisitable.accept.

The visitor that executes the work.

connection:Connection

The connection on which to perform the work.

Returns:Void

null

Exceptions
SQLException:
Thrown during execution of the underlying JDBC interaction.
HibernateException:
Generally indicates a wrapped SQLException.