Examples of beforeCommit()


Examples of org.apache.jackrabbit.webdav.jcr.transaction.TransactionListener.beforeCommit()

        // suspend regular subscriptions during a commit
        List<TransactionListener> transactionListeners = new ArrayList<TransactionListener>();
        for (Iterator<SubscriptionImpl> it = subscriptions.iterator(); it.hasNext(); ) {
            SubscriptionImpl sub = it.next();
            TransactionListener tl = sub.createTransactionListener();
            tl.beforeCommit(resource, lockToken);
            transactionListeners.add(tl);
        }
        transactionListenerById.put(lockToken, transactionListeners);
    }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.jcr.transaction.TransactionListener.beforeCommit()

        // suspend regular subscriptions during a commit
        List transactionListeners = new ArrayList();
        for (Iterator it = subscriptions.iterator(); it.hasNext(); ) {
            SubscriptionImpl sub = (SubscriptionImpl) it.next();
            TransactionListener tl = sub.createTransactionListener();
            tl.beforeCommit(resource, lockToken);
            transactionListeners.add(tl);
        }
        transactionListenerById.put(lockToken, transactionListeners);
    }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.jcr.transaction.TransactionListener.beforeCommit()

        // suspend regular subscriptions during a commit
        List transactionListeners = new ArrayList();
        for (Iterator it = subscriptions.iterator(); it.hasNext(); ) {
            SubscriptionImpl sub = (SubscriptionImpl) it.next();
            TransactionListener tl = sub.createTransactionListener();
            tl.beforeCommit(resource, lockToken);
            transactionListeners.add(tl);
        }
        transactionListenerById.put(lockToken, transactionListeners);
    }
View Full Code Here

Examples of org.apache.jetspeed.components.persistence.store.TransactionEventListener.beforeCommit()

    {
    Iterator itr = listeners.iterator();
    while(itr.hasNext())
    {
      TransactionEventListener tel = (TransactionEventListener) itr.next();
      tel.beforeCommit(new PersistenceStoreEventImpl(store, null));
    }

    }

    /**
 
View Full Code Here

Examples of org.springframework.transaction.support.TransactionSynchronization.beforeCommit()

      tac.close();

      List synchs = TransactionSynchronizationManager.getSynchronizations();
      assertEquals(1, synchs.size());
      TransactionSynchronization synch = (TransactionSynchronization) synchs.get(0);
      synch.beforeCommit(false);
      synch.beforeCompletion();
      synch.afterCommit();
      synch.afterCompletion(TransactionSynchronization.STATUS_UNKNOWN);
    }
    finally {
View Full Code Here

Examples of org.springframework.transaction.support.TransactionSynchronization.beforeCommit()

    utControl.setVoidCallable(1);
    utControl.replay();

    MockControl synchControl = MockControl.createControl(TransactionSynchronization.class);
    final TransactionSynchronization synch = (TransactionSynchronization) synchControl.getMock();
    synch.beforeCommit(false);
    synchControl.setVoidCallable(1);
    synch.beforeCompletion();
    synchControl.setVoidCallable(1);
    synch.afterCommit();
    synchControl.setVoidCallable(1);
View Full Code Here

Examples of org.springframework.transaction.support.TransactionSynchronization.beforeCommit()

    utControl.setVoidCallable(1);
    utControl.replay();

    MockControl synchControl = MockControl.createControl(TransactionSynchronization.class);
    final TransactionSynchronization synch = (TransactionSynchronization) synchControl.getMock();
    synch.beforeCommit(false);
    synchControl.setVoidCallable(1);
    synch.beforeCompletion();
    synchControl.setVoidCallable(1);
    synch.afterCommit();
    synchControl.setVoidCallable(1);
View Full Code Here

Examples of org.springframework.transaction.support.TransactionSynchronization.beforeCommit()

    utControl.setVoidCallable(1);
    utControl.replay();

    MockControl synchControl = MockControl.createControl(TransactionSynchronization.class);
    final TransactionSynchronization synch = (TransactionSynchronization) synchControl.getMock();
    synch.beforeCommit(false);
    synchControl.setThrowable(new OptimisticLockingFailureException(""));
    synch.beforeCompletion();
    synchControl.setVoidCallable(1);
    synch.afterCompletion(TransactionSynchronization.STATUS_UNKNOWN);
    synchControl.setVoidCallable(1);
View Full Code Here

Examples of org.springframework.transaction.support.TransactionSynchronization.beforeCommit()

      tac.close();

      List<TransactionSynchronization> synchs = TransactionSynchronizationManager.getSynchronizations();
      assertEquals(1, synchs.size());
      TransactionSynchronization synch = synchs.get(0);
      synch.beforeCommit(false);
      synch.beforeCompletion();
      synch.afterCommit();
      synch.afterCompletion(TransactionSynchronization.STATUS_UNKNOWN);
    }
    finally {
View Full Code Here

Examples of org.uengine.kernel.TransactionListener.beforeCommit()

      public void logic(Object target) {
       
        TransactionListener tl = (TransactionListener)target;
        try {
          tl.beforeCommit(tx);
        } catch (Exception e) {
          throw new RuntimeException(e);
        }       
      }     
    };
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.