1 package org.smartcomps.twister.common.transaction;
2
3 /***
4 * A transactional resource that can be managed my the TransactionManager. All
5 * resources that must follow a transactional behaviour must implement this interface
6 * and be registered by the TransactionManager.<br>
7 * The TransactionManager retains instances of each TransactionalResource, therefore
8 * the TransactionResource implementation must be thread safe and use the ThreadLocal
9 * pattern to have
10 * @see TransactionException, TransactionManager
11 */
12 public interface TransactionalResource {
13
14 public void initialize() throws TransactionException;
15
16 public void beginTransaction() throws TransactionException;
17
18 public void commitTransaction() throws TransactionException;
19
20 public void rollbackTransaction() throws TransactionException;
21 }
This page was automatically generated by Maven