1 21 package oracle.toplink.essentials.transaction; 23 24 import javax.transaction.Synchronization ; 25 import oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl; 26 import oracle.toplink.essentials.internal.sessions.AbstractSession; 27 28 39 public class JTASynchronizationListener extends AbstractSynchronizationListener implements Synchronization , SynchronizationListenerFactory { 40 41 46 public JTASynchronizationListener() { 47 super(); 48 } 49 50 54 public JTASynchronizationListener(UnitOfWorkImpl unitOfWork, AbstractSession session, Object transaction, AbstractTransactionController controller) { 55 super(unitOfWork, session, transaction, controller); 56 } 57 58 63 public AbstractSynchronizationListener newSynchronizationListener(UnitOfWorkImpl unitOfWork, AbstractSession session, Object transaction, AbstractTransactionController controller) { 64 return new JTASynchronizationListener(unitOfWork, session, transaction, controller); 65 } 66 67 75 public void beforeCompletion() { 76 super.beforeCompletion(); 77 } 78 79 86 public void afterCompletion(int stat) { 87 super.afterCompletion(new Integer (stat)); 88 } 89 } 90 | Popular Tags |