本文整理匯總了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();
}
}
示例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();
}
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}