@Override public Pagination<UserNewsTaskArticle> paginationEntity( UserNewsTaskArticle searchEntity, Pagination<UserNewsTaskArticle> pagination) { List<UserNewsTaskArticle> items = baseDao.paginationEntity(searchEntity, pagination); Integer totalItemsCount = baseDao.getTotalItemsCount(searchEntity); pagination.setTotalItemsCount(totalItemsCount); pagination.setItems(items); return pagination; }
@Override public boolean isExist(long articleId, long newsTaskId) { return baseDao.isExistByArticleIdAndNewsTaskId(articleId, newsTaskId); }
@Override public void delete(UserNewsTaskArticle entity) { baseDao.delete(entity); }
@Override public void update(UserNewsTaskArticle entity) { baseDao.update(entity); }
@Override public Integer getTotalItemsCount(UserNewsTaskArticle searchEntity) { return baseDao.getTotalItemsCount(searchEntity); }
@Override public List<UserNewsTaskArticle> listForPage(UserNewsTaskArticle searchEntity) { return baseDao.listForPage(searchEntity); }
@Override public UserNewsTaskArticle getById(long id) { return baseDao.getById(id); }
@Override public UserNewsTaskArticle add(UserNewsTaskArticle entity) { baseDao.add(entity); return entity; }