| Package | Description |
|---|---|
| org.apache.openejb.core | |
| org.apache.openejb.core.entity | |
| org.apache.openejb.core.transaction |
| Modifier and Type | Method and Description |
|---|---|
TransactionPolicy |
ThreadContext.getTransactionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
ThreadContext.setTransactionPolicy(TransactionPolicy transactionPolicy) |
| Constructor and Description |
|---|
EntityInstanceManager.SynchronizationWrapper(BeanContext beanContext,
Object primaryKey,
javax.ejb.EntityBean bean,
boolean available,
org.apache.openejb.core.entity.EntityInstanceManager.Key readyPoolKey,
TransactionPolicy txPolicy) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BeanTransactionPolicy
BeanTransactionPolicy is an extension to the TransactionPolicy which provides
operations for controlling a JEE bean managed transaction.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JtaTransactionPolicy |
class |
TxBeanManaged |
class |
TxMandatory
17.6.2.5 Mandatory
The Container must invoke an enterprise Bean method whose transaction
attribute is set to Mandatory in a client's transaction context.
|
class |
TxNever
17.6.2.6 Never
The Container invokes an enterprise Bean method whose transaction attribute
is set to Never without a transaction context defined by the EJB spec.
|
class |
TxNotSupported
17.6.2.1 NotSupported
The Container invokes an enterprise Bean method whose transaction attribute
is set to NotSupported with an unspecified transaction context.
|
class |
TxRequired
17.6.2.2 Required
The Container must invoke an enterprise Bean method whose transaction
attribute is set to Required with a valid transaction context.
|
class |
TxRequiresNew
17.6.2.4 RequiresNew
The Container must invoke an enterprise Bean method whose transaction
attribute is set to RequiresNew with a new transaction context.
|
class |
TxSupports
17.6.2.3 Supports
The Container invokes an enterprise Bean method whose transaction attribute
is set to Supports as follows.
|
| Modifier and Type | Method and Description |
|---|---|
TransactionPolicy |
TransactionPolicyFactory.createTransactionPolicy(TransactionType type)
Creates and begins a TransactionPolicy for the specified TransactionType.
|
TransactionPolicy |
JtaTransactionPolicyFactory.createTransactionPolicy(TransactionType type) |
static TransactionPolicy |
EjbTransactionUtil.createTransactionPolicy(TransactionType type,
ThreadContext threadContext)
Creates a new TransctionPolicy of the specified type and associates it with the specified ThreadContext.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
EjbTransactionUtil.afterInvoke(TransactionPolicy txPolicy,
ThreadContext threadContext)
Completes the specified TransactionPolicy and disassociates it from the specified ThreadContext.
|
static void |
EjbTransactionUtil.handleApplicationException(TransactionPolicy txPolicy,
Throwable appException,
boolean rollback)
Performs EJB rules when an application exception occurs.
|
static void |
EjbTransactionUtil.handleSystemException(TransactionPolicy txPolicy,
Throwable sysException,
ThreadContext callContext)
Performs EJB rules when a system exception occurs.
|
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.