@Override
public Void call() throws DatabaseException {
if (!hasValue("tracks")) {
- value("tracks", Collection.class).set(getTracksByArtist(id()));
+ getValue("tracks", Collection.class).set(getTracksByArtist(getId()));
}
return null;
}
@Override
public Void call() throws Exception {
if (!hasValue("groups")) {
- value("groups", Collection.class).set(getGroupsByArtist(id()));
+ getValue("groups", Collection.class).set(getGroupsByArtist(getId()));
}
return null;
}
* {@inheritDoc}
*/
@Override
- public Collection<Group> groups() {
+ public Collection<Group> getGroups() {
groupsMemoizer.get();
- return super.groups();
+ return super.getGroups();
}
@Override
- public Collection<Track> tracks() {
+ public Collection<Track> getTracks() {
tracksMemoizer.get();
- return super.tracks();
+ return super.getTracks();
}
}
*/
@Override
public Artist createObject(ResultSet resultSet) throws SQLException {
- return new LazyArtist(resultSet.getString("ARTISTS.ID")).name(resultSet.getString("ARTISTS.NAME"));
+ return new LazyArtist(resultSet.getString("ARTISTS.ID")).setName(resultSet.getString("ARTISTS.NAME"));
}
}
@Override
public Void call() throws Exception {
if (!hasValue("artists")) {
- value("artists", Collection.class).set(getArtistsByGroup(id()));
+ getValue("artists", Collection.class).set(getArtistsByGroup(getId()));
}
return null;
}
* {@inheritDoc}
*/
@Override
- public Collection<Artist> artists() {
+ public Collection<Artist> getArtists() {
artistsMemoizer.get();
- return super.artists();
+ return super.getArtists();
}
}
*/
@Override
public Group createObject(ResultSet resultSet) throws SQLException {
- return new LazyGroup(resultSet.getString("GROUPS.ID")).name(resultSet.getString("GROUPS.NAME")).url(resultSet.getString("GROUPS.URL"));
+ return new LazyGroup(resultSet.getString("GROUPS.ID")).setName(resultSet.getString("GROUPS.NAME")).setUrl(resultSet.getString("GROUPS.URL"));
}
}
@Override
public Void call() throws Exception {
if (!hasValue("artists")) {
- value("artists", List.class).set(getArtistsByTrack(id()));
+ getValue("artists", List.class).set(getArtistsByTrack(getId()));
}
return null;
}
@Override
public Void call() throws Exception {
if (!hasValue("styles")) {
- value("styles", Collection.class).set(getStylesByTrack(id()));
+ getValue("styles", Collection.class).set(getStylesByTrack(getId()));
}
return null;
}
* {@inheritDoc}
*/
@Override
- public List<Artist> artists() {
+ public List<Artist> getArtists() {
artistsMemoizer.get();
- return super.artists();
+ return super.getArtists();
}
/**
* {@inheritDoc}
*/
@Override
- public Collection<Style> styles() {
+ public Collection<Style> getStyles() {
stylesMemoizer.get();
- return super.styles();
+ return super.getStyles();
}
}
*/
@Override
public Track createObject(ResultSet resultSet) throws SQLException {
- return new LazyTrack(resultSet.getString("TRACKS.ID")).name(resultSet.getString("TRACKS.NAME"));
+ return new LazyTrack(resultSet.getString("TRACKS.ID")).setName(resultSet.getString("TRACKS.NAME"));
}
}
*/
@Override
public Style createObject(ResultSet resultSet) throws SQLException {
- return new DefaultStyle(resultSet.getString("STYLES.ID")).name(resultSet.getString("STYLES.NAME"));
+ return new DefaultStyle(resultSet.getString("STYLES.ID")).setName(resultSet.getString("STYLES.NAME"));
}
}