Package org.jrest4guice.transaction

Examples of org.jrest4guice.transaction.IbatisTransaction


        }
    }
  }

  public SqlMapClient getSqlMapClient() {
    transaction.set(new IbatisTransaction(SqlMapClientHolder.sqlMapClient));
    return SqlMapClientHolder.sqlMapClient;
  }
View Full Code Here


  public IbatisTransaction getIbatisTransaction(){
    return this.transaction.get();
  }
 
  public void closeSqlMapClient(){
    IbatisTransaction ibatisTransaction = this.getIbatisTransaction();
    if(ibatisTransaction != null){
      try {
        ibatisTransaction.end();
      } catch (Exception e) {
      }
      this.transaction.remove();
    }
  }
View Full Code Here

TOP

Related Classes of org.jrest4guice.transaction.IbatisTransaction

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.