private final ObjectCreator<Artist> artistCreator = new ArtistCreator();
private final ObjectCreator<Group> groupCreator = new GroupCreator();
private final ObjectCreator<Track> trackCreator = new TrackCreator();
+ private final ObjectCreator<Style> styleCreator = new StyleCreator();
private final Database database;
}
+ private class StyleCreator implements ObjectCreator<Style> {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Style createObject(ResultSet resultSet) throws SQLException {
+ return new DefaultStyle(resultSet.getString("STYLES.ID")).name(resultSet.getString("STYLES.NAME"));
+ }
+
+ }
+
}