All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.ejb.deployment.TransactionAttribute

java.lang.Object
   |
   +----javax.ejb.deployment.TransactionAttribute

public class TransactionAttribute
extends Object
The TransactionAttribute class defines the value of the enterprise bean's transaction attribute.


Variable Index

 o BEAN_MANAGED
The enterprise bean manages transaction boundaries itself using the java.jts.CurrentTransaction interface.
 o MANDATORY
The container is responsible for managing transaction boundaries for the enterprise bean as follow.
 o NOT_SUPPORTED
The enterprise bean does not support a transaction.
 o REQUIRED
The container is responsible for managing transaction boundaries for the enterprise bean as follow.
 o REQUIRES_NEW
The container is responsible for managing transaction boundaries for the enterprise bean as follow.
 o SUPPORTS
The container is responsible for managing transaction boundaries for the enterprise bean as follow.

Constructor Index

 o TransactionAttribute()

Variables

 o NOT_SUPPORTED
 public static final int NOT_SUPPORTED
The enterprise bean does not support a transaction. The container must not invoke the enterprise bean's method in the scope of a transaction.

 o BEAN_MANAGED
 public static final int BEAN_MANAGED
The enterprise bean manages transaction boundaries itself using the java.jts.CurrentTransaction interface. The container does not perform any transaction management on the bean's behalf.

 o REQUIRED
 public static final int REQUIRED
The container is responsible for managing transaction boundaries for the enterprise bean as follow.

If the caller is associated with a transaction, the execution of the enterprise bean method will be associated with the caller's transaction.

If the caller is not associated with a transaction, the container starts a new transaction, executes the enterprise bean's method in the scope of the transaction, and commits the transaction when the enterprise bean's method has completed.

 o SUPPORTS
 public static final int SUPPORTS
The container is responsible for managing transaction boundaries for the enterprise bean as follow.

If the caller is associated with a transaction, the execution of the enterprise bean method will be associated with the caller's transaction.

If the caller is not associated with a transaction, the container executes the enterprise bean's method without a transaction.

 o REQUIRES_NEW
 public static final int REQUIRES_NEW
The container is responsible for managing transaction boundaries for the enterprise bean as follow.

The container starts a new transaction, executes the enterprise bean's method in the scope of the new transaction, and commits the new transaction when the enterprise bean's method has completed.

If the caller is associated with a transaction, the association of the current thread with the caller's transaction is suspended during the execution of the enterprise bean's method, and resumed when the enterprise bean's method has completed.

 o MANDATORY
 public static final int MANDATORY
The container is responsible for managing transaction boundaries for the enterprise bean as follow.

If the caller is associated with a transaction, the execution of the enterprise bean method will be associated with the caller's transaction.

If the caller is not associated with a transaction, the container throws the java.jts.TransactionRequiredException to the caller.

Constructors

 o TransactionAttribute
 public TransactionAttribute()

All Packages  Class Hierarchy  This Package  Previous  Next  Index