package net.pterodactylus.demoscenemusic.data;
-import java.sql.ResultSet;
-import java.sql.SQLException;
import java.util.Collection;
-import net.pterodactylus.util.database.ObjectCreator;
-
/**
* TODO
*
*/
public class DefaultGroup extends DefaultBase implements Group {
- public static final ObjectCreator<Group> CREATOR = new GroupCreator();
-
public DefaultGroup(String id) {
super(id);
}
return this;
}
- private static class GroupCreator implements ObjectCreator<Group> {
-
- /**
- * {@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"));
- }
-
- }
-
}