chapter_008/src/main/java/ru/job4j/persistence/DBHalls.java
/**
     * Delete status reserve from database.
     */
Delete status reserve from database.
Delete status reserve from database .
public void deleteReserve() {
        checkTable();
        try (Connection conn = SOURCE.getConnection();
             PreparedStatement st = conn.prepareStatement("UPDATE halls SET status= ? WHERE status = ?")) {
            st.setString(1, "free");
            st.setString(2, "reserve");
            st.executeUpdate();
        } catch (SQLException e) {
            LOGGER.error("Failed to delete status reserve.");
        }
    }
public void deleteReserve ( ) { checkTable ( ) ; try ( Connection conn = SOURCE . getConnection ( ) ; PreparedStatement st = conn . prepareStatement ( "UPDATE halls SET status= ? WHERE status = ?" ) ) { st . setString ( 1 , "free" ) ; st . setString ( 2 , "reserve" ) ; st . executeUpdate ( ) ; } catch ( SQLException e ) { LOGGER . error ( "Failed to delete status reserve." ) ; } }
Delete status reserve from database.
Delete status reserve from database .