chapter_006/src/main/java/ru/job4j/store/StoreSQL.java
/**
     * Close PreparedStatement and Connection.
     *
     * @throws Exception - Exception.
     */
Close PreparedStatement and Connection.
@throws Exception - Exception.
Close PreparedStatement and Connection . @throws Exception - Exception .
@Override
    public void close() throws Exception {
        this.conn.commit();
        if (this.rs != null) {
            this.rs.close();
        }
        if (st != null) {
            st.close();
        }
        if (conn != null) {
            try {
                conn.close();
            } catch (SQLException e) {
                LOGGER.error(e.getMessage(), e);
            }
        }
    }
@ Override public void close ( ) throws Exception { this . conn . commit ( ) ; if ( this . rs != null ) { this . rs . close ( ) ; } if ( st != null ) { st . close ( ) ; } if ( conn != null ) { try { conn . close ( ) ; } catch ( SQLException e ) { LOGGER . error ( e . getMessage ( ) , e ) ; } } }
Close PreparedStatement and Connection.
Close PreparedStatement and Connection .