
net.kemitix.itunes.medialibrary.ArtistRowMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of itunes-medialibrary Show documentation
Show all versions of itunes-medialibrary Show documentation
Java library for reading/writing to the iTunes MediaLibrary SQLite database
The newest version!
package net.kemitix.itunes.medialibrary;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;
@Component
public class ArtistRowMapper implements RowMapper {
@Override
public Artist mapRow(ResultSet rs, int rowNum) throws SQLException {
Artist artist = new Artist();
artist.setId(rs.getLong("album_artist_pid"));
artist.setTitle(rs.getString("album_artist"));
artist.setSortTitle(rs.getString("sort_album_artist"));
return artist;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy