From c9abfe7d653c88931b01137a65188873ee586a37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 31 Jul 2012 06:44:01 +0200 Subject: [PATCH] Remove URL from group. --- .../pterodactylus/demoscenemusic/data/DataManager.java | 2 +- .../pterodactylus/demoscenemusic/data/DefaultGroup.java | 17 ----------------- .../net/pterodactylus/demoscenemusic/data/Group.java | 16 ---------------- 3 files changed, 1 insertion(+), 34 deletions(-) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java index 4d2a318..f06a48b 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java @@ -1096,7 +1096,7 @@ public class DataManager { */ @Override public Group createObject(ResultSet resultSet) throws SQLException { - return new LazyGroup(resultSet.getString("GROUPS.ID")).setName(resultSet.getString("GROUPS.NAME")).setUrl(resultSet.getString("GROUPS.URL")); + return new LazyGroup(resultSet.getString("GROUPS.ID")).setName(resultSet.getString("GROUPS.NAME")); } } diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultGroup.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultGroup.java index 16c1c76..407a425 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultGroup.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultGroup.java @@ -61,23 +61,6 @@ public class DefaultGroup extends DefaultBase implements Group { * {@inheritDoc} */ @Override - public String getUrl() { - return getValue("url", String.class).get(); - } - - /** - * {@inheritDoc} - */ - @Override - public Group setUrl(String url) { - getValue("url", String.class).set(url); - return this; - } - - /** - * {@inheritDoc} - */ - @Override @SuppressWarnings("unchecked") public Collection getArtists() { return getValue("artists", Collection.class).get(); diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java index 054b303..9c86181 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java @@ -43,22 +43,6 @@ public interface Group extends Base { public Group setName(String name); /** - * Returns the URL of this group’s website. - * - * @return The URL of this group’s website - */ - public String getUrl(); - - /** - * Sets the URL of this group’s website. - * - * @param url - * The URL of this group’s website - * @return This group - */ - public Group setUrl(String url); - - /** * Returns all artists belonging to this group. * * @return All artists belonging to this group -- 2.7.4