LongtableCount=daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM %s",tableName),Long.class);
LongtableCount=daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM %s",tableName),Long.class);
dbTableCount.put(tableName,tableCount);
dbTableCount.put(tableName,tableCount);
@ -334,19 +335,19 @@ public class InternalHelpController {
map.put("dbIsLegacy",false);
map.put("dbIsLegacy",false);
}
}
map.put("dbMediaFileMusicNonPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM MEDIA_FILE WHERE NOT present AND type = 'MUSIC'"),Long.class));
map.put("dbMediaFileMusicNonPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM media_file WHERE NOT present AND type = 'MUSIC'"),Long.class));
map.put("dbMediaFilePodcastNonPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM MEDIA_FILE WHERE NOT present AND type = 'PODCAST'"),Long.class));
map.put("dbMediaFilePodcastNonPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM media_file WHERE NOT present AND type = 'PODCAST'"),Long.class));
map.put("dbMediaFileDirectoryNonPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM MEDIA_FILE WHERE NOT present AND type = 'DIRECTORY'"),Long.class));
map.put("dbMediaFileDirectoryNonPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM media_file WHERE NOT present AND type = 'DIRECTORY'"),Long.class));
map.put("dbMediaFileAlbumNonPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM MEDIA_FILE WHERE NOT present AND type = 'ALBUM'"),Long.class));
map.put("dbMediaFileAlbumNonPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM media_file wheRE NOT present AND type = 'ALBUM'"),Long.class));
map.put("dbMediaFileMusicPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM MEDIA_FILE WHERE present AND type = 'MUSIC'"),Long.class));
map.put("dbMediaFileMusicPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM media_file WHERE present AND type = 'MUSIC'"),Long.class));
map.put("dbMediaFilePodcastPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM MEDIA_FILE WHERE present AND type = 'PODCAST'"),Long.class));
map.put("dbMediaFilePodcastPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM media_file WHERE present AND type = 'PODCAST'"),Long.class));
map.put("dbMediaFileDirectoryPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM MEDIA_FILE WHERE present AND type = 'DIRECTORY'"),Long.class));
map.put("dbMediaFileDirectoryPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM media_file WHERE present AND type = 'DIRECTORY'"),Long.class));
map.put("dbMediaFileAlbumPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM MEDIA_FILE WHERE present AND type = 'ALBUM'"),Long.class));
map.put("dbMediaFileAlbumPresentCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(*) FROM media_file WHERE present AND type = 'ALBUM'"),Long.class));
map.put("dbMediaFileDistinctAlbumCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(DISTINCT album) FROM MEDIA_FILE WHERE present"),Long.class));
map.put("dbMediaFileDistinctAlbumCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(DISTINCT album) FROM media_file WHERE present"),Long.class));
map.put("dbMediaFileDistinctArtistCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(DISTINCT artist) FROM MEDIA_FILE WHERE present"),Long.class));
map.put("dbMediaFileDistinctArtistCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(DISTINCT artist) FROM media_file WHERE present"),Long.class));
map.put("dbMediaFileDistinctAlbumArtistCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(DISTINCT album_artist) FROM MEDIA_FILE WHERE present"),Long.class));
map.put("dbMediaFileDistinctAlbumArtistCount",daoHelper.getJdbcTemplate().queryForObject(String.format("SELECT count(DISTINCT album_artist) FROM media_file WHERE present"),Long.class));