Examples of wasCommitted()


Examples of com.atomikos.icatch.admin.AdminTransaction.wasCommitted()

        // in the general case, no distinction has to be made between different
        // outcomes of different participants.
        msgs = p.getHeuristicMessages ();

        if ( p.wasCommitted () )
            ret.append ( messages_.getString ( "commitAttemptedMessage" ) );
        else if ( p.getState () != AdminTransaction.STATE_PREPARED )
            ret.append ( messages_.getString ( "rollbackAttemptedMessage" ) );

        for ( int i = 0; i < msgs.length; i++ ) {
View Full Code Here

Examples of com.atomikos.icatch.admin.AdminTransaction.wasCommitted()

                          messages_.getString ( "keepInLogOption" ) };
                  Vector descriptors = getStateDescriptors ( rec );
                  StateTableModel table = new StateTableModel ( descriptors );
                  PropertiesPanel panel = new PropertiesPanel ( table, true );
                  String outcome = null;
                  if ( rec.wasCommitted () )
                      outcome = messages_.getString ( "commitOutcomeMessage" );
                  else
                      outcome = messages_
                              .getString ( "rollbackOutcomeMessage" );
                  panel.addPropertyListener ( pListener_ );
View Full Code Here

Examples of com.atomikos.icatch.admin.AdminTransaction.wasCommitted()

        // in the general case, no distinction has to be made between different
        // outcomes of different participants.
        msgs = p.getHeuristicMessages ();

        if ( p.wasCommitted () )
            ret.append ( messages_.getString ( "commitAttemptedMessage" ) );
        else if ( p.getState () != AdminTransaction.STATE_PREPARED )
            ret.append ( messages_.getString ( "rollbackAttemptedMessage" ) );

        for ( int i = 0; i < msgs.length; i++ ) {
View Full Code Here

Examples of com.atomikos.icatch.admin.AdminTransaction.wasCommitted()

                          messages_.getString ( "keepInLogOption" ) };
                  Vector descriptors = getStateDescriptors ( rec );
                  StateTableModel table = new StateTableModel ( descriptors );
                  PropertiesPanel panel = new PropertiesPanel ( table, true );
                  String outcome = null;
                  if ( rec.wasCommitted () )
                      outcome = messages_.getString ( "commitOutcomeMessage" );
                  else
                      outcome = messages_
                              .getString ( "rollbackOutcomeMessage" );
                  panel.addPropertyListener ( pListener_ );
View Full Code Here

Examples of com.atomikos.icatch.admin.AdminTransaction.wasCommitted()

        // in the general case, no distinction has to be made between different
        // outcomes of different participants.
        msgs = p.getHeuristicMessages ();

        if ( p.wasCommitted () )
            ret.append ( messages_.getString ( "commitAttemptedMessage" ) );
        else if ( p.getState () != AdminTransaction.STATE_PREPARED )
            ret.append ( messages_.getString ( "rollbackAttemptedMessage" ) );

        for ( int i = 0; i < msgs.length; i++ ) {
View Full Code Here

Examples of com.atomikos.icatch.admin.AdminTransaction.wasCommitted()

                          messages_.getString ( "keepInLogOption" ) };
                  Vector descriptors = getStateDescriptors ( rec );
                  StateTableModel table = new StateTableModel ( descriptors );
                  PropertiesPanel panel = new PropertiesPanel ( table, true );
                  String outcome = null;
                  if ( rec.wasCommitted () )
                      outcome = messages_.getString ( "commitOutcomeMessage" );
                  else
                      outcome = messages_
                              .getString ( "rollbackOutcomeMessage" );
                  panel.addPropertyListener ( pListener_ );
View Full Code Here

Examples of org.hibernate.Transaction.wasCommitted()

  public void beginTransaction(){
    if(transactions == null)
      return;
    // Would be written as a no-op in an EJB container with CMT
    Transaction tx = (Transaction)transactions.get();
    if (tx == null || tx.wasCommitted() || tx.wasRolledBack()) {
      Session ssn = (Session)sessions.get();
      if(ssn == null){
        ssn = getSession();
        tx = ssn.beginTransaction();
        transactions.set(tx);
View Full Code Here

Examples of org.hibernate.Transaction.wasCommitted()

  public void commit(){
    if(transactions == null)
      return;
    // Would be written as a no-op in an EJB container with CMT
    Transaction tx = (Transaction)transactions.get();
    if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) {
      tx.commit();
    }
    else{
      if(tx!=null && log.isWarnEnabled())
        log.warn("Trying to commit the uncommitable transaction, nothing to do.");
View Full Code Here

Examples of org.hibernate.Transaction.wasCommitted()

  public void rollback(){
    if(transactions == null)
      return;
    Transaction tx = (Transaction)transactions.get();
    transactions.set(null);
    if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) {
      tx.rollback();
    }
    else{
      if(tx!=null && log.isWarnEnabled())
        log.warn("Trying to rollback the unrollbackable transaction, nothing to do.");
View Full Code Here

Examples of org.hibernate.Transaction.wasCommitted()

        need2ProcessTransaction = entityManager.isNeed2ProcessTransaction();
      }else if(PersistenceGuiceContext.getInstance().isUseHibernate()){
        SessionFactoryHolder sessionFH = GuiceContext.getInstance().getBean(SessionFactoryHolder.class);
        SessionInfo session = sessionFH.getSessionInfo();
        hbTS = session.getSession().getTransaction();
        need2ProcessTransaction = session.isNeed2ProcessTransaction() && !hbTS.wasCommitted();
      }

      if(need2ProcessTransaction){
        if(hbTS != null)
          hbTS.commit();
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.