public class TransactionEntityMap extends Object implements org.jboss.msc.service.Service<TransactionEntityMap>
Modifier and Type | Class and Description |
---|---|
static class |
TransactionEntityMap.GlobalTxSynchronization
A list of instances associated with the transaction.
|
static interface |
TransactionEntityMap.TxAssociation
An instance can be in one of the three states:
not associated with the tx and, hence, does not need to be synchronized
associated with the tx and needs to be synchronized
associated with the tx but does not need to be synchronized
Implementations of TxAssociation implement these states.
|
Modifier and Type | Field and Description |
---|---|
static TransactionEntityMap.TxAssociation |
NONE |
static TransactionEntityMap.TxAssociation |
NOT_READY
Used for instances in the create phase,
i.e.
|
static TransactionEntityMap.TxAssociation |
PREVENT_SYNC |
static TransactionEntityMap.TxAssociation |
SYNC_SCHEDULED |
static TransactionEntityMap.TxAssociation |
SYNCHRONIZED |
Constructor and Description |
---|
TransactionEntityMap() |
Modifier and Type | Method and Description |
---|---|
TransactionEntityMap.GlobalTxSynchronization |
getGlobalSynchronization(Transaction tx) |
Transaction |
getTransaction() |
org.jboss.msc.inject.Injector<TransactionManager> |
getTransactionManagerInjector() |
TransactionEntityMap |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
void |
synchronizeEntities(Transaction tx)
sync all EntityEnterpriseContext that are involved (and changed)
within a transaction.
|
public static final TransactionEntityMap.TxAssociation NONE
public static final TransactionEntityMap.TxAssociation SYNC_SCHEDULED
public static final TransactionEntityMap.TxAssociation SYNCHRONIZED
public static final TransactionEntityMap.TxAssociation PREVENT_SYNC
public static final TransactionEntityMap.TxAssociation NOT_READY
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<TransactionEntityMap>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<TransactionEntityMap>
public TransactionEntityMap getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<TransactionEntityMap>
IllegalStateException
IllegalArgumentException
public org.jboss.msc.inject.Injector<TransactionManager> getTransactionManagerInjector()
public void synchronizeEntities(Transaction tx)
public TransactionEntityMap.GlobalTxSynchronization getGlobalSynchronization(Transaction tx) throws RollbackException, SystemException
RollbackException
SystemException
public Transaction getTransaction()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.