From: David ‘Bombe’ Roden Date: Tue, 31 Jul 2012 04:44:01 +0000 (+0200) Subject: Remove URL from group. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c9abfe7d653c88931b01137a65188873ee586a37;p=demoscenemusic.git Remove URL from group. --- 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