| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait TransactionProtocol
extends
ScalaObject
Trait that implements a JTA transaction service that obeys the transaction semantics defined in the transaction attribute types for the transacted methods according to the EJB 3 draft specification. The aspect handles UserTransaction, TransactionManager instance variable injection thru @javax.ejb.Inject (name subject to change as per EJB 3 spec) and method transaction levels thru @javax.ejb.TransactionAttribute.
This trait should be inherited to implement the getTransactionManager() method that should return a concrete javax.transaction.TransactionManager implementation (from JNDI lookup etc).
TransactionRequiredException instead. If the method does start, then it will become part of the transaction of the caller. So if the EJB method signals a failure, the caller will be rolled back as well as the EJB.
RemoteException being thrown. This attribute is probably less useful than `NotSupported', in that NotSupported will assure that the caller's transaction is never affected by the EJB method (just as `Never' does), but will allow a call from a transactional caller if necessary.
- Jonas Bonér| !=.. |
final def !=(arg0 : Any)
|
Boolean | Any |
| !=.. |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Any)
|
Boolean | Any |
| asInstanceOf.. |
final def asInstanceOf[T0]
|
T0 | Any |
| clone.. |
protected def clone
|
Object | AnyRef |
| commitOrRollBack.. |
protected def commitOrRollBack(tm : TransactionManager)
|
Unit | |
| eq.. |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals.. |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| finalize.. |
protected def finalize
|
Unit | AnyRef |
| getClass.. |
final def getClass
|
Class[Any] | AnyRef |
| handleException.. |
protected def handleException(tm : TransactionManager, e : Exception)
|
Nothing | |
| hashCode.. |
def hashCode
|
Int | AnyRef |
| isInExistingTransaction.. |
protected def isInExistingTransaction(tm : TransactionManager)
Checks if a transaction is an existing transaction
[details]
|
Boolean | |
| isInstanceOf.. |
final def isInstanceOf[T0]
|
Boolean | Any |
| isRollbackOnly.. |
protected def isRollbackOnly(tm : TransactionManager)
Checks if current transaction is set to rollback only
[details]
|
Boolean | |
| ne.. |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify.. |
final def notify
|
Unit | AnyRef |
| notifyAll.. |
final def notifyAll
|
Unit | AnyRef |
| synchronized.. |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toString.. |
def toString
|
String | AnyRef |
| wait.. |
final def wait
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| withTxMandatory.. |
def withTxMandatory[T](body : => T)
Wraps body in a transaction with MANDATORY semantics
[details]
Throws a TransactionRequiredException if there is no transaction active in scope.
|
T | |
| withTxNever.. |
def withTxNever[T](body : => T)
Wraps body in a transaction with NEVER semantics
[details]
Throws a SystemException in case of an existing transaction in scope.
|
T | |
| withTxNotSupported.. |
def withTxNotSupported[T](body : => T)
Wraps body in a transaction with NOT_SUPPORTED semantics
[details]
Suspends existing transaction, invokes body, resumes transaction.
|
T | |
| withTxRequired.. |
def withTxRequired[T](body : => T)
Wraps body in a transaction with REQUIRED semantics
[details]
Creates a new transaction if no transaction is active in scope, else joins the outer transaction.
|
T | |
| withTxRequiresNew.. |
def withTxRequiresNew[T](body : => T)
Wraps body in a transaction with REQUIRES_NEW semantics
[details]
Suspends existing transaction, starts a new transaction, invokes body,
commits or rollbacks new transaction, finally resumes previous transaction.
|
T | |
| withTxSupports.. |
def withTxSupports[T](body : => T)
Wraps body in a transaction with SUPPORTS semantics
[details]
Basicalla a No-op.
|
T |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |