}
}
Dao<Settings, Integer> settingsDao = DaoManager.createDao(connectionSource, Settings.class);
Dao<Feed, Integer> feedDao = DaoManager.createDao(connectionSource, Feed.class);
Dao<Search, Integer> searchDao = DaoManager.createDao(connectionSource, Search.class);
Settings settings = Settings.getInstance();
for(Feed feed : settings.getFeeds()) {
feedDao.createOrUpdate(feed);
}
for(Search search : settings.getSearches()) {
searchDao.createOrUpdate(search);
}
settingsDao.createOrUpdate(settings);
LOGGER.fine("Stored " + numShows + " shows, " + numSeasons + " seasons, and " + numEpisodes + " episodes in database.");
connectionSource.close();