jetbrick-orm/src/main/java/jetbrick/dao/orm/tx/JdbcTransaction.java
@Override
    public void rollback() {
        try {
            if (conn.isClosed()) {
                throw new TransactionException("the connection is closed in transaction.");
            }
            conn.rollback();
            conn.setAutoCommit(true);
        } catch (SQLException e) {
            throw new TransactionException(e);
        }
    }
@Override
    public void rollback() {
        try {
            if (conn.isClosed()) {
                throw new TransactionException("the connection is closed in transaction.");
            }
            conn.rollback();
            conn.setAutoCommit(true);
        } catch (SQLException e) {
            throw new TransactionException(e);
        }
    }
@ Override public void rollback ( ) { try { if ( conn . isClosed ( ) ) { throw new TransactionException ( "the connection is closed in transaction." ) ; } conn . rollback ( ) ; conn . setAutoCommit ( true ) ; } catch ( SQLException e ) { throw new TransactionException ( e ) ; } }
回滚一个事务
回滚一个事务