public Collection<Artist> getAllArtists() throws DatabaseException {
Query query = new Query(Type.SELECT, "ARTISTS");
query.addField(new Field("ARTISTS.*"));
- return loadProperties(database.getMultiple(query, artistCreator));
+ return loadArtistProperties(database.getMultiple(query, artistCreator));
}
/**
Query query = new Query(Type.SELECT, "ARTISTS");
query.addField(new Field("ARTISTS.*"));
query.addWhereClause(new ValueFieldWhereClause(new ValueField("ARTISTS.ID", new StringParameter(id))));
- return loadProperties(database.getSingle(query, artistCreator));
+ return loadArtistProperties(database.getSingle(query, artistCreator));
}
/**
query.addField(new Field("ARTISTS.*"));
query.addJoin(new Join(JoinType.INNER, "GROUP_ARTISTS", new Field("ARTISTS.ID"), new Field("GROUP_ARTISTS.ARTIST")));
query.addWhereClause(new ValueFieldWhereClause(new ValueField("GROUP_ARTISTS.GROUP_", new StringParameter(groupId))));
- return loadProperties(database.getMultiple(query, artistCreator));
+ return loadArtistProperties(database.getMultiple(query, artistCreator));
}
/**
query.addJoin(new Join(JoinType.INNER, "TRACK_ARTISTS", new Field("TRACK_ARTISTS.ARTIST"), new Field("ARTISTS.ID")));
query.addWhereClause(new ValueFieldWhereClause(new ValueField("TRACK_ARTISTS.TRACK", new StringParameter(trackId))));
query.addOrderField(new OrderField(new Field("TRACK_ARTISTS.DISPLAY_ORDER")));
- return loadProperties(database.getMultiple(query, artistCreator));
+ return loadArtistProperties(database.getMultiple(query, artistCreator));
}
/**
query.addValueField(new ValueField("ID", new StringParameter(id)));
query.addValueField(new ValueField("NAME", new StringParameter(name)));
database.insert(query);
- return loadProperties(getArtistById(id));
+ return loadArtistProperties(getArtistById(id));
}
/**
* @throws DatabaseException
* if a database error occurs
*/
- public Artist loadProperties(final Artist artist) throws DatabaseException {
+ public Artist loadArtistProperties(final Artist artist) throws DatabaseException {
return loadProperties(artist, "ARTIST_PROPERTIES", "ARTIST");
}
* @throws DatabaseException
* if a database error occurs
*/
- public List<Artist> loadProperties(List<Artist> artists) throws DatabaseException {
+ public List<Artist> loadArtistProperties(List<Artist> artists) throws DatabaseException {
for (Artist artist : artists) {
- loadProperties(artist);
+ loadArtistProperties(artist);
}
return artists;
}