org.compass.core.transaction
Class JTASyncTransaction
java.lang.Object
org.compass.core.transaction.AbstractTransaction
org.compass.core.transaction.AbstractJTATransaction
org.compass.core.transaction.JTASyncTransaction
- All Implemented Interfaces:
- CompassTransaction, InternalCompassTransaction
public class JTASyncTransaction
- extends AbstractJTATransaction
Implements a basic transaction strategy for JTA transactions. Instances check
to see if there is an existing JTA transaction. If none exists, a new
transaction is started. If one exists, all work is done in the existing
context.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTASyncTransaction
public JTASyncTransaction(UserTransaction ut,
boolean commitBeforeCompletion,
TransactionFactory transactionFactory)
doBindToTransaction
protected void doBindToTransaction(Transaction tx,
InternalCompassSession session,
boolean newTransaction)
throws Exception
- Specified by:
doBindToTransaction in class AbstractJTATransaction
- Throws:
Exception
Copyright (c) 2004-2008 The Compass Project.