Package in.partake.model.dao.access

Examples of in.partake.model.dao.access.IConfigurationItemAccess


    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();
    }
View Full Code Here

TOP

Related Classes of in.partake.model.dao.access.IConfigurationItemAccess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.