List of usage examples for org.apache.ibatis.transaction Transaction close
void close() throws SQLException;
From source file:com.raycloud.cobarclient.mybatis.spring.SqlSessionUtils.java
License:Apache License
private static void closeTransaction(Transaction tx) { if (tx != null) { try {// ww w. j a v a 2 s.co m tx.close(); } catch (SQLException ignore) { // Intentionally ignore. Prefer previous error. } } }
From source file:org.activiti.MultiTenantSqlSessionFactory.java
License:Apache License
private void closeTransaction(Transaction tx) { if (tx != null) { try {/*from w ww . ja v a2 s . c o m*/ tx.close(); } catch (SQLException ignore) { // Intentionally ignore. Prefer previous error. } } }