public boolean saveOrUpdateDatas(List<ArticleItemBean> itemDatas) { boolean success = mArticleItemLocalDao.saveOrUpdateItemDatas(itemDatas); return success; }
/** * get article item data from database which publish time older or newer than last item in memory * * @param itemBean oldest or newest item's data * @param groupType * @param onceLoadNum * @param dataStatus * @return */ public List<ArticleItemBean> getLocalItemDatas( ArticleItemBean itemBean, int groupType, int onceLoadNum, String dataStatus) { List<ArticleItemBean> itemBeans = mArticleItemLocalDao.getItemDatas(itemBean, groupType, onceLoadNum, dataStatus); return itemBeans; }
public boolean hasMoreLocalData( ArticleItemBean itemBean, int groupType, int onceLoadNum, String dataStatus) { boolean hasMore = mArticleItemLocalDao.hasMoreItemData(itemBean, groupType, onceLoadNum, dataStatus); return hasMore; }