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.OrderField;
import net.pterodactylus.util.database.OrderField.Order;
import net.pterodactylus.util.database.Parameter.StringParameter;
*/
public class DataManager {
+ private final ObjectCreator<Artist> artistCreator = new ArtistCreator();
+
private final Database database;
public DataManager(Database database) {
}
+ private class ArtistCreator implements ObjectCreator<Artist> {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Artist createObject(ResultSet resultSet) throws SQLException {
+ return new LazyArtist(resultSet.getString("ARTISTS.ID")).name(resultSet.getString("ARTISTS.NAME"));
+ }
+
+ }
+
}