|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.lang.enum.Enum
com.xenonsoft.bridgetown.aop.transaction.TransactionDemarcationEnum
Transaction demarcation enumeration denotes the process when a taransaction is started, resumed, committed, and rolled back. The EJB specification defines several attributes for container managed transactons, and they control how EJBs participate in transactions. These specifications are followed in the IoC Framework.
| XA interface and Two Phase Commit Protocol |
|
Two phase commit is a protocol used to control distributed
transactions.
It specifies a flow of command and states that execute during
a distributed transaction context between the transaction
session and the resource managers. The standard defined by the
X/Open Group follows a so-called two phase commit process.
In the first phase, updates that will be written to the resources are sent to the resource managements and stored in a transaction log. Each resource in turn is asked to confirm whether it can guarantee the successful completion of its part of the transaction. The confirmation must be ACID: atomic, consistent, isolated and durable. In the second phase, if the resource managers report that the their transaction portion will be successfully stored then the transaction session notifies all the resources to commit, and the effects of the distributed transaction are applied permanently. Should the a resource session reply with no guarantee, the transaction session notifies all the resources to roll back their transaction parts. The effect overall is a distributed transaction reversed out. |
This enumeration type follows the J2EE specification.
| Field Summary | |
static TransactionDemarcationEnum |
CMTX_MANDATORY
This attribute applies to AOP transaction methods that must already have an existing transaction context underway. |
static TransactionDemarcationEnum |
CMTX_NEVER
This attribute applies to AOP transaction methods that must NOT already have an existing transaction context underway. |
static TransactionDemarcationEnum |
CMTX_NOT_SUPPORTED
This attribute applies to AOP transaction methods that do not support transaction. |
static TransactionDemarcationEnum |
CMTX_REQUIRED
This attribute applies to AOP transaction methods that require a transaction context. |
static TransactionDemarcationEnum |
CMTX_REQUIRES_NEW
This attribute applies to AOP transaction methods that requires a brand new transaction context. |
static TransactionDemarcationEnum |
CMTX_SUPPORTS
This attribute applies to AOP transaction methods that can operate with or without a transaction context. |
| Fields inherited from class org.apache.commons.lang.enum.Enum |
iToString |
| Method Summary | |
static TransactionDemarcationEnum |
getEnum(java.lang.String textValue)
|
static java.util.List |
getEnumList()
|
static java.util.Map |
getEnumMap()
|
static java.util.Iterator |
iterator()
|
| Methods inherited from class org.apache.commons.lang.enum.Enum |
compareTo, equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final TransactionDemarcationEnum CMTX_NOT_SUPPORTED
public static final TransactionDemarcationEnum CMTX_REQUIRED
public static final TransactionDemarcationEnum CMTX_SUPPORTS
CMTX_NOT_SUPPORTED and CMTX_REQUIRED.
public static final TransactionDemarcationEnum CMTX_REQUIRES_NEW
public static final TransactionDemarcationEnum CMTX_MANDATORY
public static final TransactionDemarcationEnum CMTX_NEVER
| Method Detail |
public static TransactionDemarcationEnum getEnum(java.lang.String textValue)
public static java.util.Map getEnumMap()
public static java.util.List getEnumList()
public static java.util.Iterator iterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||