1 package org.hibernate.engine.transaction;
2
3 import org.hibernate.HibernateException;
4
5 import java.sql.Connection;
6
7 /**
8 * Represents work that needs to be performed in a manner
9 * which isolates it from any current application unit of
10 * work transaction.
11 *
12 * @author Steve Ebersole
13 */
14 public interface IsolatedWork {
15 /**
16 * Perform the actual work to be done.
17 *
18 * @param connection The JDBC connection to use.
19 * @throws HibernateException
20 */
21 public void doWork(Connection connection) throws HibernateException;
22 }