01: package com.completex.objective.components.persistency.transact;
02:
03: /**
04: * @author Gennady Krizhevsky
05: */
06: public interface JoiningTransactionManagerFactory {
07: /**
08: * Retuns new instance of non commiting/rollbacking wrapper for coreTransactionManager
09: *
10: * @param coreTransactionManager
11: * @return new instance of non commiting/rollbacking wrapper for coreTransactionManager
12: */
13: TransactionManager newJoiningNullTransactionManager(
14: TransactionManager coreTransactionManager);
15:
16: /**
17: * Retuns new instance of non-releasing wrapper for coreTransactionManager.
18: * The returned TransactionManager instance will commit/rollback the current transaction
19: * w/o returning it to the pool. TransactionManager.begin() method will retrun current transaction.
20: *
21: * @param coreTransactionManager
22: * @return new instance of non-releasing wrapper for coreTransactionManager
23: */
24: TransactionManager newJoiningTransactionManager(
25: TransactionManager coreTransactionManager);
26: }
|