public static void loadFromDB() throws DAOException, PartakeException {
new DBAccess<Void>() {
@Override
protected Void doExecute(PartakeConnection con, IPartakeDAOs daos) throws DAOException, PartakeException {
IConfigurationItemAccess dao = daos.getConfiguraitonItemAccess();
toppath = getValue(dao.find(con, ConfigurationKeyConstants.TOPPATH));
daemonEnabled = getValue(dao.find(con, ConfigurationKeyConstants.DAEMON_ENABLED));
twitterBotId = getValue(dao.find(con, ConfigurationKeyConstants.TWITTER_BOT_ID));
luceneIndexDir = getValue(dao.find(con, ConfigurationKeyConstants.LUCENE_INDEX_DIX));
googleAnalyticsId = getValue(dao.find(con, ConfigurationKeyConstants.GOOGLE_ANALYTICS_ID));
twitter4jConsumerKey = getValue(dao.find(con, ConfigurationKeyConstants.TWITTER4J_CONSUMER_KEY));
twitter4jConsumerSecret = getValue(dao.find(con, ConfigurationKeyConstants.TWITTER4J_CONSUMER_SECRET));
adminScreenNames = getValue(dao.find(con, ConfigurationKeyConstants.ADMIN_SCREEN_NAMES));
return null;
}
}.execute();
}