Examples of afterCompletion()


Examples of javax.transaction.Synchronization.afterCompletion()

      if ( synchronization != null ) {
        //first cleanup
        flushSynch.remove( session );
        log.debug( "flush event causing index update out of transaction" );
        synchronization.beforeCompletion();
        synchronization.afterCompletion( Status.STATUS_COMMITTED );
      }
    }
  }

  /**
 
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()

    if ( synchronization != null ) {
      //first cleanup
      flushSynch.remove( session );
      log.debug( "flush event causing index update out of transaction" );
      synchronization.beforeCompletion();
      synchronization.afterCompletion( Status.STATUS_COMMITTED );
    }
  }

  public SearchFactoryImplementor getSearchFactoryImplementor() {
    return searchFactoryImplementor;
View Full Code Here

Examples of javax.transaction.Synchronization.afterCompletion()

    private void afterCompletion(List syncs) {
        for (Iterator i = syncs.iterator(); i.hasNext();) {
            Synchronization synch = (Synchronization) i.next();
            try {
                synch.afterCompletion(status);
            } catch (Exception e) {
                log.warn("Unexpected exception from afterCompletion; continuing", e);
            }
        }
    }
View Full Code Here

Examples of javax.transaction.Synchronization.afterCompletion()

      try {
        if (log.isLoggable(Level.FINEST))
          log.finest(this + " afterCompletion " + sync);

        sync.afterCompletion(status);
      } catch (Throwable e) {
        log.log(Level.FINE, e.toString(), e);
      }
    }
View Full Code Here

Examples of javax.transaction.Synchronization.afterCompletion()

      try {
        if (log.isLoggable(Level.FINEST))
          log.finest(this + " afterCompletion " + sync);

        sync.afterCompletion(status);
      } catch (Throwable e) {
        log.log(Level.FINE, e.toString(), e);
      }
    }
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
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.