chapter_008/src/main/java/ru/job4j/persistence/DBAccounts.java
/**
     * Clear all elements from table.
     */
Clear all elements from table.
Clear all elements from table .
public void clearAll() {
        checkTable();
        try (Connection conn = SOURCE.getConnection();
             PreparedStatement st = conn.prepareStatement("DELETE FROM accounts")) {
            DBHalls.getInstance().clearAll();
            st.executeUpdate();
        } catch (SQLException e) {
            LOGGER.error("Failed to clear all eleme.");
        }
    }
public void clearAll ( ) { checkTable ( ) ; try ( Connection conn = SOURCE . getConnection ( ) ; PreparedStatement st = conn . prepareStatement ( "DELETE FROM accounts" ) ) { DBHalls . getInstance ( ) . clearAll ( ) ; st . executeUpdate ( ) ; } catch ( SQLException e ) { LOGGER . error ( "Failed to clear all eleme." ) ; } }
Clear all elements from table.
Clear all elements from table .