KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > regis > RWSession


1 package org.sapia.regis;
2
3 /**
4  * This interface extends the <code>RegisSession</code> interface
5  * in order to provide transaction demarcation. All write operations
6  * on a registry (and its underlying nodes) must be performed in the
7  * context of a transaction, using the transaction-demarcation methods
8  * provided by an instance of this class.
9  *
10  * @author yduchesne
11  *
12  */

13 public interface RWSession extends RegisSession{
14   
15   /**
16    * Begins a new transaction.
17    */

18   public void begin();
19
20   /**
21    * Commits the current transaction.
22    */

23   public void commit();
24   
25   /**
26    * Rolls back the current transaction.
27    */

28   public void rollback();
29
30 }
31
Popular Tags