站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

GlobalTxEntityMap.TxAssociation (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb
Interface GlobalTxEntityMap.TxAssociation

Enclosing interface:
GlobalTxEntityMap

public static interface GlobalTxEntityMap.TxAssociation

An instance can be in one of the three states:

Implementations of TxAssociation implement these states.


Method Summary
 void invokeEjbStore(Thread thread, EntityEnterpriseContext instance)
          Invokes ejbStore if needed
 void scheduleSync(Transaction tx, EntityEnterpriseContext instance)
          Schedules the instance for synchronization.
 void synchronize(Thread thread, Transaction tx, EntityEnterpriseContext instance)
          Synchronizes the instance if it is needed.
 

Method Detail

scheduleSync

public void scheduleSync(Transaction tx,
                         EntityEnterpriseContext instance)
                  throws SystemException,
                         RollbackException
Schedules the instance for synchronization. The instance might or might not be associated with the tx.

Parameters:
tx - the transaction the instance should be associated with if not yet associated
instance - the instance to be scheduled for synchronization
Throws:
SystemException
RollbackException

synchronize

public void synchronize(Thread thread,
                        Transaction tx,
                        EntityEnterpriseContext instance)
                 throws Exception
Synchronizes the instance if it is needed.

Parameters:
thread - current thread
tx - current transaction
instance - the instance to be synchronized
Throws:
Exception - thrown if synchronization failed

invokeEjbStore

public void invokeEjbStore(Thread thread,
                           EntityEnterpriseContext instance)
                    throws Exception
Invokes ejbStore if needed

Parameters:
thread - current thread
instance - the instance to be synchronized
Throws:
Exception - thrown if synchronization failed


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.