KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > ScriptMappingTransaction


1 /*
2  * ScriptMappingTransaction.java. Created on Apr 29, 2004.
3  */

4 package org.enhydra.shark.api;
5
6 /**
7  * Script mapping information may be stored in separate repository
8  * so it may need a different type of transaction. To represent this,
9  * ScriptMappingTransaction is another interface different from SharkTransaction
10  * and other transaction interfaces.
11  *
12  * @see SharkTransaction
13  * @author Zoran Milakovic
14  */

15 public interface ScriptMappingTransaction {
16
17    /**
18    * Commits mapping transaction.
19    *
20    * @exception TransactionException If something unexpected happens.
21    */

22    public void commit () throws TransactionException;
23
24    /**
25    * Rollbacks mapping transaction. This method is called when commit
26    * method fails.
27    *
28    * @exception TransactionException If something unexpected happens.
29    */

30    public void rollback () throws TransactionException;
31
32    /**
33    * Releases mapping transaction. Method <b>MUST</b> be called for each
34    * transaction.
35    *
36    * @exception TransactionException If something unexpected happens.
37    */

38    public void release() throws TransactionException;
39
40 }
41
Popular Tags