@Override
    public void close() {
        try {
            if (conn.isClosed()) {
                throw new TransactionException("the connection is closed in transaction.");
            }
            DbUtils.closeQuietly(conn);
        } catch (SQLException e) {
            throw new TransactionException(e);
        } finally {
            transationHandler.set(null);
        }
    }
@ Override public void close ( ) { try { if ( conn . isClosed ( ) ) { throw new TransactionException ( "the connection is closed in transaction." ) ; } DbUtils . closeQuietly ( conn ) ; } catch ( SQLException e ) { throw new TransactionException ( e ) ; } finally { transationHandler . set ( null ) ; } }
结束一个事务