Examples of afterCompletion()


Examples of javax.transaction.Synchronization.afterCompletion()

    }

    if (synchronizations != null) {
           for ( int i = 0; i < synchronizations.size(); i++ ) {
             Synchronization s = ( Synchronization ) synchronizations.get( i );
             s.afterCompletion( status );
           }
    }

    //status = Status.STATUS_NO_TRANSACTION;
    jtaTransactionManager.endCurrent( this );
View Full Code Here

Examples of javax.transaction.Synchronization.afterCompletion()

         status = Status.STATUS_COMMITTED;

         for (int i = 0; i < synchronizations.size(); i++) {
            Synchronization s = (Synchronization) synchronizations.get(i);
            s.afterCompletion(status);
         }

         // status = Status.STATUS_NO_TRANSACTION;
         jtaTransactionManager.endCurrent(this);
      }
View Full Code Here

Examples of javax.transaction.Synchronization.afterCompletion()

      }
     
      if (synchronizations != null) {
         for (int i = 0; i < synchronizations.size(); i++) {
            Synchronization s = (Synchronization) synchronizations.get(i);
            s.afterCompletion(status);
         }
      }

      // status = Status.STATUS_NO_TRANSACTION;
      jtaTransactionManager.endCurrent(this);
View Full Code Here

Examples of javax.transaction.Synchronization.afterCompletion()

      status = Status.STATUS_COMMITTED;

      for ( int i = 0; i < synchronizations.size(); i++ ) {
        Synchronization s = ( Synchronization ) synchronizations.get( i );
        s.afterCompletion( status );
      }

      //status = Status.STATUS_NO_TRANSACTION;
      jtaTransactionManager.endCurrent( this );
    }
View Full Code Here

Examples of javax.transaction.Synchronization.afterCompletion()

      }
    }

    for ( int i = 0; i < synchronizations.size(); i++ ) {
      Synchronization s = ( Synchronization ) synchronizations.get( i );
      s.afterCompletion( status );
    }

    //status = Status.STATUS_NO_TRANSACTION;
    jtaTransactionManager.endCurrent( this );
  }
View Full Code Here

Examples of org.apache.aries.jpa.container.context.transaction.impl.TranSyncRegistryMock.afterCompletion()

    emf2.createEntityManager().persist(new Object());
   
    Skeleton.getSkeleton(cbk).assertNotCalled(new MethodCall(DestroyCallback.class,
        "callback"));
   
    backingTSR.afterCompletion("new");
   
    Skeleton.getSkeleton(cbk).assertNotCalled(new MethodCall(DestroyCallback.class,
        "callback"));
   
    assertUniqueContextRegistered("unit2");
View Full Code Here

Examples of org.apache.geronimo.transaction.ConnectionReleaser.afterCompletion()

    private void connectorAfterCommit() {
        if (managedConnections != null) {
            for (Iterator entries = managedConnections.entrySet().iterator(); entries.hasNext();) {
                Map.Entry entry = (Map.Entry) entries.next();
                ConnectionReleaser key = (ConnectionReleaser) entry.getKey();
                key.afterCompletion(entry.getValue());
            }
            //If BeanTransactionContext never reuses the same instance for sequential BMT, this
            //clearing is unnecessary.
            managedConnections.clear();
        }
View Full Code Here

Examples of org.apache.geronimo.transaction.ConnectionReleaser.afterCompletion()

    private void connectorAfterCommit() {
        if (managedConnections != null) {
            for (Iterator entries = managedConnections.entrySet().iterator(); entries.hasNext();) {
                Map.Entry entry = (Map.Entry) entries.next();
                ConnectionReleaser key = (ConnectionReleaser) entry.getKey();
                key.afterCompletion(entry.getValue());
            }
            //If BeanTransactionContext never reuses the same instance for sequential BMT, this
            //clearing is unnecessary.
            managedConnections.clear();
        }
View Full Code Here

Examples of org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.afterCompletion()

    }
    else {
      WorkQueue workQueue = new BatchLuceneWorkQueue( documentBuilders, lockableDirectoryProviders );
      PostTransactionWorkQueueSynchronization sync = new PostTransactionWorkQueueSynchronization( workQueue );
      sync.add( work );
      sync.afterCompletion( Status.STATUS_COMMITTED );
    }
  }

  public Map<DirectoryProvider, ReentrantLock> getLockableDirectoryProviders() {
    return lockableDirectoryProviders;
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWorkCallback.afterCompletion()

                boolean isCallback = instance.proxy() instanceof UnitOfWorkCallback;
                boolean isNotRemoved = !instance.status().equals( EntityStatus.REMOVED );
                if( isCallback && isNotRemoved )
                {
                    UnitOfWorkCallback callback = UnitOfWorkCallback.class.cast( instance.proxy() );
                    callback.afterCompletion( status );
                }
            }
        }
        catch( Exception 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.