com.ca.jcs
Interface TransactionManager
- All Known Implementing Classes:
- NullTransactionManager
public interface TransactionManager
Allows a connector to expose a transaction service to any interested parties,
in the same way that ConnectionManager exposes a connection service.
For OpBindings a single transaction can span all processing for single LDAP request,
potentially including bindings with all three timings (
Timing.PRE/OP/POST) for
an operation invoked to process the request. Note the OP case will only be covered if either:
- an operation binding is being used for the OP case (i.e. the connector itself is not actually invoked) OR
- the connector is prepared to join transactions started by the
operation binding processor (in which case they are both presumably implemented
using the same underlying technology set, e.g. JDBC).
Note transactions can potentially be of use to all styles of processors: attribute-style,
method-style and script-style.
openTransaction
Object openTransaction()
throws NamingException
- Throws:
NamingException
rollback
void rollback(Object transaction)
throws NamingException
- Throws:
NamingException
commit
void commit(Object transaction)
throws NamingException
- Throws:
NamingException
Created 2011-07-14 13:27 EST