
net.kemitix.itunes.medialibrary.ItemDao 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 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 ItemDao extends LibraryDao- {
private final String SELECT_ALL_SQL = "select * from item";
private final String SELECT_BY_ID = "select * from item where item_pid = ?";
@Autowired
public ItemDao(JdbcTemplate jdbcTemplate, RowMapper
- rowMapper) {
super(jdbcTemplate, rowMapper);
}
@Override
String getSelectAllSql() {
return SELECT_ALL_SQL;
}
@Override
String getSelectByIdSql() {
return SELECT_BY_ID;
}
}