class JDBCUtils {

    public static void execute(Connection connection, String sql) throws SQLException {
        try (Statement statement = connection.createStatement()) {
            if (log.isDebugEnabled()) {
                log.debug(sql);
            }
            statement.execute(sql);
        } catch (SQLException e) {
            log.error(sql);
            throw e;
        }
    }

}