Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.jts.wls
Class WebLogicSynchronizationListener

java.lang.Object
  extended byoracle.toplink.jts.AbstractSynchronizationListener
      extended byoracle.toplink.jts.JTSSynchronizationListener
          extended byoracle.toplink.jts.wls.WebLogicSynchronizationListener

All Implemented Interfaces:
javax.transaction.Synchronization

public class WebLogicSynchronizationListener
extends JTSSynchronizationListener

Purpose: Provides transaction callback mechanism Listener class

Description: This class is paired with WebLogicJTSExternalTransactionController. It contains the implementation logic to handle the synchronization callback notifications with respect to UnitOfWork - commiting changes to the database and merging clones into the parent Session.

Responsibilities:


Field Summary

Fields inherited from class oracle.toplink.jts.AbstractSynchronizationListener
dumpExceptionsFromCallbacks

Constructor Summary
WebLogicSynchronizationListener(oracle.toplink.publicinterface.UnitOfWork unitOfWork, oracle.toplink.publicinterface.Session session, java.lang.Object transaction)

Method Summary
void afterCompletion(int status)
PUBLIC: The afterCompletion method is called by the transaction manager after the transaction is committed or rolled back.

Methods inherited from class oracle.toplink.jts.JTSSynchronizationListener
setTransactionManager

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface javax.transaction.Synchronization
beforeCompletion

Constructor Detail

WebLogicSynchronizationListener

public WebLogicSynchronizationListener(oracle.toplink.publicinterface.UnitOfWork unitOfWork,
                                       oracle.toplink.publicinterface.Session session,
                                       java.lang.Object transaction)

Method Detail

afterCompletion

public void afterCompletion(int status)
PUBLIC: The afterCompletion method is called by the transaction manager after the transaction is committed or rolled back. This method executes without a transaction context.
Specified by:
afterCompletion in interface javax.transaction.Synchronization
Overrides:
afterCompletion in class AbstractSynchronizationListener
Parameters:
status - The status of the transaction completion.

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.