Example usage for org.apache.ibatis.transaction Transaction close

List of usage examples for org.apache.ibatis.transaction Transaction close

Introduction

In this page you can find the example usage for org.apache.ibatis.transaction Transaction close.

Prototype

void close() throws SQLException;

Source Link

Document

Close inner database connection.

Usage

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.
        }
    }
}