View Javadoc

1   package atg.adapter.gsa;
2   
3   import java.sql.Connection;
4   
5   /***
6    * Interface for code that should be executed with autoCommit=true.
7    * @version $Id: //test/UnitTests/base/main/src/Java/atg/adapter/gsa/AutoCommitable.java#1 $
8    * @author adamb
9    *
10   */
11  public interface AutoCommitable {
12    /***
13     * Work to be done withing the scope of an autoCommit transaction
14     * should be placed into the implementation of this method.
15     * Hand of the implementation (typically via Anonymous Inner Class) to an
16     * instance of <code>DoInAutoCommitLand.doInAutoCommit</code>
17     * @param pConnection
18     */
19   public void doInAutoCommit(Connection pConnection);
20  }