From 6f3371253d6a4398abea9fcd9c78a042b80c5af2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 28 Jul 2012 01:32:45 +0200 Subject: [PATCH] Change method signature. --- .../net/pterodactylus/demoscenemusic/data/DataManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java index c87df73..5f20905 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java @@ -410,16 +410,16 @@ public class DataManager { /** * Returns the derivatives for the given track. * - * @param track - * The track to get the derivatives for + * @param trackId + * The track ID to get the derivatives for * @return The derivatives for the given track * @throws DatabaseException * if a database error occurs */ - public Collection getTrackDerivativesByTrack(Track track) throws DatabaseException { + public Collection getTrackDerivativesByTrack(String trackId) throws DatabaseException { Query query = new Query(Type.SELECT, "TRACK_DERIVATIVES"); query.addField(new Field("TRACK_DERIVATIVES.*")); - query.addWhereClause(new ValueFieldWhereClause(new ValueField("TRACK_DERIVATIVES.TRACK", new StringParameter(track.getId())))); + query.addWhereClause(new ValueFieldWhereClause(new ValueField("TRACK_DERIVATIVES.TRACK", new StringParameter(trackId)))); return loadTrackDerivativeProperties(database.getMultiple(query, trackDerivativeCreator)); } @@ -797,7 +797,7 @@ public class DataManager { @Override public Void call() throws Exception { if (!hasValue("derivatives")) { - getValue("derivatives", Collection.class).set(getTrackDerivativesByTrack(LazyTrack.this)); + getValue("derivatives", Collection.class).set(getTrackDerivativesByTrack(getId())); } return null; } -- 2.7.4