Package com.baasbox.exception

Examples of com.baasbox.exception.NoTransactionException


      if (tranCount.get()<0) throw new RuntimeException("Commit without transaction!");
      if (tranCount.get()==0) {
        db.commit();
        db.getTransaction().close();
     
    }else throw new NoTransactionException("There is no open transaction to commit");
    if (Logger.isDebugEnabled()) Logger.debug("Commit Transaction: transaction count -after-: " + tranCount.get());

  }
View Full Code Here

TOP

Related Classes of com.baasbox.exception.NoTransactionException

Copyright © 2018 www.massapicom. 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.