From: David ‘Bombe’ Roden Date: Thu, 19 Apr 2012 14:31:47 +0000 (+0200) Subject: Remove object creator from DefaultGroup. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=36f9aa4b27ec90a836218404594b75e652f1ec49;p=demoscenemusic.git Remove object creator from DefaultGroup. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultGroup.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultGroup.java index 4495830..0899b6d 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultGroup.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultGroup.java @@ -17,12 +17,8 @@ package net.pterodactylus.demoscenemusic.data; -import java.sql.ResultSet; -import java.sql.SQLException; import java.util.Collection; -import net.pterodactylus.util.database.ObjectCreator; - /** * TODO * @@ -30,8 +26,6 @@ import net.pterodactylus.util.database.ObjectCreator; */ public class DefaultGroup extends DefaultBase implements Group { - public static final ObjectCreator CREATOR = new GroupCreator(); - public DefaultGroup(String id) { super(id); } @@ -84,16 +78,4 @@ public class DefaultGroup extends DefaultBase implements Group { return this; } - private static class GroupCreator implements ObjectCreator { - - /** - * {@inheritDoc} - */ - @Override - public Group createObject(ResultSet resultSet) throws SQLException { - return new DefaultGroup(resultSet.getString("GROUPS.ID")).name(resultSet.getString("GROUPS.NAME")).url(resultSet.getString("GROUPS.URL")); - } - - } - }