Top Description Methods
org.hibernate.jdbc

public Interface WorkExecutorVisitable<T>

Known Direct Implementers
org.hibernate.jdbc.AbstractReturningWork, org.hibernate.jdbc.AbstractWork
Imports
java.sql.Connection, .SQLException

This interface provides a way to execute unrelated "work" objects using polymorphism. Instances of this interface can accept a WorkExecutor visitor for executing a discrete piece of work, and return an implementation-defined result.
Author
Gail Badner

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

an implementation-defined result
accept
(WorkExecutor<T>
The visitor that executes the work.
executor
,
Connection
The connection on which to perform the work.
connection
)

Accepts a WorkExecutor visitor for executing a discrete piece of work, and returns an implementation-defined result..

Method Detail

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

Accepts a WorkExecutor visitor for executing a discrete piece of work, and returns an implementation-defined result..

Parameters
executor:WorkExecutor<T>

The visitor that executes the work.

connection:Connection

The connection on which to perform the work.

Returns:T

an implementation-defined result

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