All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.kemitix.itunes.medialibrary.ArtistDao Maven / Gradle / Ivy

The newest version!
package net.kemitix.itunes.medialibrary;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;

@Repository
class ArtistDao extends LibraryDao {

    private final String SELECT_ALL_SQL = "select * from album_artist";
    private final String SELECT_BY_ID = "select * from album_artist where album_artist_pid = ?";

    @Autowired
    public ArtistDao(JdbcTemplate jdbcTemplate, RowMapper rowMapper) {
        super(jdbcTemplate, rowMapper);
    }

    @Override
    String getSelectAllSql() {
        return SELECT_ALL_SQL;
    }

    @Override
    String getSelectByIdSql() {
        return SELECT_BY_ID;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy