@Override
 public List<OaCertificateType> findAll(Page page) {
   org.springframework.data.domain.Page<OaCertificateType> springDataPage =
       certificateTypeDAO.findAll(PageUtils.createPageable(page));
   page.setTotalCount(springDataPage.getTotalElements());
   return springDataPage.getContent();
 }
 @Override
 public List<OaCertificateType> find(Page page, String typeName) {
   org.springframework.data.domain.Page<OaCertificateType> springDataPage =
       (org.springframework.data.domain.Page<OaCertificateType>)
           certificateTypeDAO.findByTypeNameContaining(typeName, PageUtils.createPageable(page));
   page.setTotalCount(springDataPage.getTotalElements());
   return springDataPage.getContent();
 }
Ejemplo n.º 3
0
 /**
  * @param parentId
  * @param name
  * @param page
  * @return
  * @see com.node.system.service.ModuleService#find(java.lang.Long, java.lang.String,
  *     com.node.system.util.dwz.Page)
  */
 public List<Module> find(Long parentId, String name, Page page) {
   org.springframework.data.domain.Page<Module> springDataPage =
       moduleDAO.findByParentIdAndNameContaining(parentId, name, PageUtils.createPageable(page));
   page.setTotalCount(springDataPage.getTotalElements());
   return springDataPage.getContent();
 }