X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fdemoscenemusic%2Fdata%2FDataManager.java;h=60b831824e3833cea148bc5cf01eb51e9266f018;hb=cb96ebd4d6cb9b43fcf9a6bb3e2f335bff243708;hp=5d3c1de99fe8fcaa11b165d668b830a770049598;hpb=4841c89b211b11fccbab4b83e0a1a235336f2114;p=demoscenemusic.git
diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java
index 5d3c1de..60b8318 100644
--- a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java
+++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java
@@ -19,12 +19,14 @@ package net.pterodactylus.demoscenemusic.data;
import java.sql.ResultSet;
import java.sql.SQLException;
-import java.util.ArrayList;
import java.util.Collection;
+import java.util.EnumMap;
import java.util.HashSet;
import java.util.List;
+import java.util.Map;
import java.util.concurrent.Callable;
+import net.pterodactylus.demoscenemusic.data.Track.Relationship;
import net.pterodactylus.util.collection.Memoizer;
import net.pterodactylus.util.database.Database;
import net.pterodactylus.util.database.DatabaseException;
@@ -32,8 +34,8 @@ import net.pterodactylus.util.database.Field;
import net.pterodactylus.util.database.Join;
import net.pterodactylus.util.database.Join.JoinType;
import net.pterodactylus.util.database.ObjectCreator;
+import net.pterodactylus.util.database.ObjectCreator.StringCreator;
import net.pterodactylus.util.database.OrderField;
-import net.pterodactylus.util.database.OrderField.Order;
import net.pterodactylus.util.database.Parameter.StringParameter;
import net.pterodactylus.util.database.Query;
import net.pterodactylus.util.database.Query.Type;
@@ -42,28 +44,68 @@ import net.pterodactylus.util.database.ValueField;
import net.pterodactylus.util.database.ValueFieldWhereClause;
/**
- * TODO
+ * Interface between the database and the application.
*
* @author David âBombeâ Roden
*/
public class DataManager {
+ /** The artist object creator. */
+ @SuppressWarnings("synthetic-access")
private final ObjectCreator artistCreator = new ArtistCreator();
+
+ /** The group object creator. */
+ @SuppressWarnings("synthetic-access")
private final ObjectCreator groupCreator = new GroupCreator();
+
+ /** The track object creator. */
+ @SuppressWarnings("synthetic-access")
private final ObjectCreator