* if a database error occurs
*/
public List<Artist> loadArtistProperties(List<Artist> artists) throws DatabaseException {
- for (Artist artist : artists) {
- loadArtistProperties(artist);
- }
- return artists;
+ return loadProperties(artists, "ARTIST_PROPERTIES", "ARTIST");
}
/**
* if a database error occurs
*/
public List<Track> loadTrackProperties(List<Track> tracks) throws DatabaseException {
- for (Track track : tracks) {
- loadTrackProperties(track);
- }
- return tracks;
+ return loadProperties(tracks, "TRACK_PROPERTIES", "TRACK");
}
/**
* if a database error occurs
*/
public List<TrackDerivative> loadTrackDerivativeProperties(List<TrackDerivative> trackDerivatives) throws DatabaseException {
- for (TrackDerivative trackDerivative : trackDerivatives) {
- loadTrackDerivativeProperties(trackDerivative);
- }
- return trackDerivatives;
+ return loadProperties(trackDerivatives, "TRACK_DERIVATIVE_PROPERTIES", "TRACK_DERIVATIVE");
}
/**
* @throws DatabaseException
* if a database error occurs
*/
- public Collection<Group> loadGroupProperties(Collection<Group> groups) throws DatabaseException {
- for (Group group : groups) {
- loadGroupProperties(group);
- }
- return groups;
+ public Collection<Group> loadGroupProperties(List<Group> groups) throws DatabaseException {
+ return loadProperties(groups, "GROUP_PROPERTIES", "GROUP_ID");
}
/**
* if a database error occurs
*/
public List<Party> loadPartyProperties(List<Party> parties) throws DatabaseException {
- for (Party party : parties) {
- loadPartyProperties(party);
- }
- return parties;
+ return loadProperties(parties, "PARTY_PROPERTIES", "PARTY");
}
/**