@SuppressWarnings("synthetic-access")
private final ObjectCreator<Track> trackCreator = new TrackCreator();
+ /** The track object creator. */
+ @SuppressWarnings("synthetic-access")
+ private final ObjectCreator<TrackDerivative> trackDerivativeCreator = new TrackDerivativeCreator();
+
/** The style object creator. */
@SuppressWarnings("synthetic-access")
private final ObjectCreator<Style> styleCreator = new StyleCreator();
}
/**
+ * {@link ObjectCreator} implementation that can create
+ * {@link TrackDerivative} objects.
+ *
+ * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
+ */
+ private class TrackDerivativeCreator implements ObjectCreator<TrackDerivative> {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public TrackDerivative createObject(ResultSet resultSet) throws SQLException {
+ return new DefaultTrackDerivative(resultSet.getString("TRACK_DERIVATIVES.ID"));
+ }
+
+ }
+
+ /**
* {@link ObjectCreator} implementation that can create {@link Style}
* objects.
*