class MusicTypeStore {

    public boolean update(int id, MusicType type) {
        boolean result = false;
        if (type != null) {
            try (Connection connect = CON.getConnect();
                 PreparedStatement st = connect.prepareStatement(QUERIES.getProperty("updateType"))) {
                st.setString(1, type.getType());
                st.setInt(2, id);
                result = st.executeUpdate() > 0;
            } catch (SQLException e) {
                LOG.error(e.getMessage(), e);
            }
        }
        return result;
    }

}