Examples of registerProcess()


Examples of org.hibernate.engine.ActionQueue.registerProcess()

             */
      final ActionQueue actionQueue = eventSource.getActionQueue();
      boolean isLocal = isLocalTransaction();
      if ( isLocal ) {
        //if local tx never use Synchronization
        actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
      }
      else {
        //TODO could we remove the action queue registration in this case?
        actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
        eventSource.getTransaction().registerSynchronization(
View Full Code Here

Examples of org.hibernate.engine.ActionQueue.registerProcess()

        //if local tx never use Synchronization
        actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
      }
      else {
        //TODO could we remove the action queue registration in this case?
        actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
        eventSource.getTransaction().registerSynchronization(
            new BeforeCommitSynchronizationDelegator( synchronization )
        );
      }
View Full Code Here

Examples of org.hibernate.engine.ActionQueue.registerProcess()

            new BeforeCommitSynchronizationDelegator( synchronization )
        );
      }

      //executed in all environments
      actionQueue.registerProcess( new DelegateToSynchronizationOnAfterTx( synchronization ) );
    }
    else {
      //registerSynchronization is only called if isRealTransactionInProgress or if
      // a flushListener was found; still we might need to find the listener again
      // as it might have been cleared by serialization (is transient).
View Full Code Here

Examples of org.hibernate.engine.ActionQueue.registerProcess()

  public void registerSynchronization(Synchronization synchronization) {
    if ( isRealTransactionInProgress() ) {
      //use {Before|After}TransactionCompletionProcess instead of registerTransaction because it does not
      //swallow transactions.
      final ActionQueue actionQueue = eventSource.getActionQueue();
      actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
      actionQueue.registerProcess( new DelegateToSynchronizationOnAfterTx( synchronization ) );
//      eventSource.getTransaction().registerSynchronization( synchronization );
    }
    else {
      //registerSynchronization is only called if isRealTransactionInProgress or if
View Full Code Here

Examples of org.hibernate.engine.ActionQueue.registerProcess()

    if ( isRealTransactionInProgress() ) {
      //use {Before|After}TransactionCompletionProcess instead of registerTransaction because it does not
      //swallow transactions.
      final ActionQueue actionQueue = eventSource.getActionQueue();
      actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
      actionQueue.registerProcess( new DelegateToSynchronizationOnAfterTx( synchronization ) );
//      eventSource.getTransaction().registerSynchronization( synchronization );
    }
    else {
      //registerSynchronization is only called if isRealTransactionInProgress or if
      // a flushListener was found; still we might need to find the listener again
View Full Code Here

Examples of org.hibernate.engine.ActionQueue.registerProcess()

             * In a JTA env, the before transaction completion is called before the flush, so not all changes are yet
             * written. However, Synchronization-s do propagate exceptions, so they can be safely used.
             */

      final ActionQueue actionQueue = eventSource.getActionQueue();
      actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
      eventSource.getTransaction().registerSynchronization(
          new BeforeCommitSynchronizationDelegator( synchronization )
      );

      //executed in all environments
View Full Code Here

Examples of org.hibernate.engine.ActionQueue.registerProcess()

      eventSource.getTransaction().registerSynchronization(
          new BeforeCommitSynchronizationDelegator( synchronization )
      );

      //executed in all environments
      actionQueue.registerProcess( new DelegateToSynchronizationOnAfterTx( synchronization ) );
    }
    else {
      //registerSynchronization is only called if isRealTransactionInProgress or if
      // a flushListener was found; still we might need to find the listener again
      // as it might have been cleared by serialization (is transient).
View Full Code Here

Examples of org.hibernate.engine.ActionQueue.registerProcess()

             */
      final ActionQueue actionQueue = eventSource.getActionQueue();
      boolean isLocal = isLocalTransaction();
      if ( isLocal ) {
        //if local tx never use Synchronization
        actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
      }
      else {
        //TODO could we remove the action queue registration in this case?
        actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
        eventSource.getTransaction().registerSynchronization(
View Full Code Here

Examples of org.hibernate.engine.ActionQueue.registerProcess()

        //if local tx never use Synchronization
        actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
      }
      else {
        //TODO could we remove the action queue registration in this case?
        actionQueue.registerProcess( new DelegateToSynchronizationOnBeforeTx( synchronization ) );
        eventSource.getTransaction().registerSynchronization(
            new BeforeCommitSynchronizationDelegator( synchronization )
        );
      }
View Full Code Here

Examples of org.hibernate.engine.ActionQueue.registerProcess()

            new BeforeCommitSynchronizationDelegator( synchronization )
        );
      }

      //executed in all environments
      actionQueue.registerProcess( new DelegateToSynchronizationOnAfterTx( synchronization ) );
    }
    else {
      //registerSynchronization is only called if isRealTransactionInProgress or if
      // a flushListener was found; still we might need to find the listener again
      // as it might have been cleared by serialization (is transient).
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.