org.smartcomps.twister.common.transaction
Interface TransactionalResource
- All Known Implementing Classes:
- DBSessionManager, XMLSessionManager
- public interface TransactionalResource
A transactional resource that can be managed my the TransactionManager. All
resources that must follow a transactional behaviour must implement this interface
and be registered by the TransactionManager.
The TransactionManager retains instances of each TransactionalResource, therefore
the TransactionResource implementation must be thread safe and use the ThreadLocal
pattern to have
- See Also:
initialize
public void initialize()
throws TransactionException
TransactionException
beginTransaction
public void beginTransaction()
throws TransactionException
TransactionException
commitTransaction
public void commitTransaction()
throws TransactionException
TransactionException
rollbackTransaction
public void rollbackTransaction()
throws TransactionException
TransactionException
Copyright © 2003 SmartComps. All Rights Reserved.