當前位置: 首頁>>代碼示例>>Java>>正文


Java BlogsDao類代碼示例

本文整理匯總了Java中cn.eoe.app.biz.BlogsDao的典型用法代碼示例。如果您正苦於以下問題:Java BlogsDao類的具體用法?Java BlogsDao怎麽用?Java BlogsDao使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BlogsDao類屬於cn.eoe.app.biz包,在下文中一共展示了BlogsDao類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onLoadMore

import cn.eoe.app.biz.BlogsDao; //導入依賴的package包/類
@Override
public void onLoadMore() {
	// TODO Auto-generated method stub
	if (more_url==null || more_url.equals("")) {
		mHandler.sendEmptyMessage(1);
		return;
	} else {

		new Thread() {
			@Override
			public void run() {
				BlogsMoreResponse response = new BlogsDao(mActivity)
						.getMore(more_url);
				if (response != null) {
					loadMoreEntity = response.getResponse();
					mHandler.sendEmptyMessage(0);
				}
			}
		}.start();
	}

}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:23,代碼來源:BlogFragment.java

示例2: onLoadMore

import cn.eoe.app.biz.BlogsDao; //導入依賴的package包/類
@Override
public void onLoadMore() {
	// TODO Auto-generated method stub
	if (more_url.equals(null) || more_url.equals("")) {
		mHandler.sendEmptyMessage(1);
		return;
	} else {

		new Thread() {
			@Override
			public void run() {
				BlogsMoreResponse response = new BlogsDao(mActivity)
						.getMore(more_url);
				if (response != null) {
					loadMoreEntity = response.getResponse();
					mHandler.sendEmptyMessage(0);
				}
			}
		}.start();
	}

}
 
開發者ID:RyanLee7,項目名稱:eoe_android,代碼行數:23,代碼來源:BlogFragment.java

示例3: initClass

import cn.eoe.app.biz.BlogsDao; //導入依賴的package包/類
private void initClass() {
    blogsDao = new BlogsDao(this);
    newsDao = new NewsDao(this);
    wikiDao = new WikiDao(this);
    topDao = new TopDao(this);
}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:7,代碼來源:MainActivity.java

示例4: doInBackground

import cn.eoe.app.biz.BlogsDao; //導入依賴的package包/類
@Override
protected Map<String, Object> doInBackground(BaseDao... params) {
    BaseDao dao = params[0];
    List<CategorysEntity> categorys = new ArrayList<CategorysEntity>();
    Map<String, Object> map = new HashMap<String, Object>();
    if (dao instanceof TopDao) {
        mTag = 0;
        if ((categoryList = topDao.mapperJson(mUseCache)) != null) {

            categorys = topDao.getCategorys();
            map.put("tabs", categorys);
            map.put("list", categoryList);
        }
    } else if (dao instanceof BlogsDao) {
        mTag = 3;
        if ((responseData = blogsDao.mapperJson(mUseCache)) != null) {
            categoryList = (List) responseData.getList();
            categorys = responseData.getCategorys();
            map.put("tabs", categorys);
            map.put("list", categoryList);
        }
    } else if (dao instanceof NewsDao) {
        mTag = 1;
        if ((newsResponseData = newsDao.mapperJson(mUseCache)) != null) {
            categoryList = (List) newsResponseData.getList();
            categorys = newsResponseData.getCategorys();
            map.put("tabs", categorys);
            map.put("list", categoryList);
        }
    } else if (dao instanceof WikiDao) {
        mTag = 2;
        if ((wikiResponseData = wikiDao.mapperJson(mUseCache)) != null) {
            categoryList = (List) wikiResponseData.getList();
            categorys = wikiResponseData.getCategorys();
            map.put("tabs", categorys);
            map.put("list", categoryList);
        }
    } else {
        return null;
    }
    return map;
}
 
開發者ID:shengge,項目名稱:eoe-android-app,代碼行數:43,代碼來源:MainActivity.java

示例5: initClass

import cn.eoe.app.biz.BlogsDao; //導入依賴的package包/類
private void initClass() {
	blogsDao = new BlogsDao(this);
	newsDao = new NewsDao(this);
	wikiDao = new WikiDao(this);
	topDao = new TopDao(this);
}
 
開發者ID:RyanLee7,項目名稱:eoe_android,代碼行數:7,代碼來源:MainActivity.java

示例6: doInBackground

import cn.eoe.app.biz.BlogsDao; //導入依賴的package包/類
@Override
protected Map<String, Object> doInBackground(BaseDao... params) {
	BaseDao dao = params[0];
	List<CategorysEntity> categorys = new ArrayList<CategorysEntity>();
	Map<String, Object> map = new HashMap<String, Object>();
	if (dao instanceof TopDao) {
		mTag = 0;
		if ((categoryList = topDao.mapperJson(mUseCache)) != null) {

			categorys = topDao.getCategorys();
			map.put("tabs", categorys);
			map.put("list", categoryList);
		}
	} else if (dao instanceof BlogsDao) {
		mTag = 3;
		if ((responseData = blogsDao.mapperJson(mUseCache)) != null) {
			categoryList = (List) responseData.getList();
			categorys = responseData.getCategorys();
			map.put("tabs", categorys);
			map.put("list", categoryList);
		}
	} else if (dao instanceof NewsDao) {
		mTag = 1;
		if ((newsResponseData = newsDao.mapperJson(mUseCache)) != null) {
			categoryList = (List) newsResponseData.getList();
			categorys = newsResponseData.getCategorys();
			map.put("tabs", categorys);
			map.put("list", categoryList);
		}
	} else if (dao instanceof WikiDao) {
		mTag = 2;
		if ((wikiResponseData = wikiDao.mapperJson(mUseCache)) != null) {
			categoryList = (List) wikiResponseData.getList();
			categorys = wikiResponseData.getCategorys();
			map.put("tabs", categorys);
			map.put("list", categoryList);
		}
	} else {
		return null;
	}
	return map;
}
 
開發者ID:RyanLee7,項目名稱:eoe_android,代碼行數:43,代碼來源:MainActivity.java


注:本文中的cn.eoe.app.biz.BlogsDao類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。