public void pruneSelections(DbMp3Track track) { DbMusicSelection[] allSelections = selectionPersister.getAllSelections(db); for (DbMusicSelection selection : allSelections) { selection.removeTracks(new IMp3Track[] {track}); selectionPersister.updateSelection(db, selection); } db.commit(); }
public void updateSelectionName(IMusicSelection selection, String newName) { DbMusicSelection dbSelection = (DbMusicSelection) selection; dbSelection.setName(newName); selectionPersister.updateSelection(db, dbSelection); db.commit(); }