public IPageList list(IQueryObject properties) {
   if (properties == null) {
     return null;
   }
   String query = properties.getQuery();
   Map params = properties.getParameters();
   GenericPageList pList = new GenericPageList(Message.class, query, params, this.messageDao);
   if (properties != null) {
     PageObject pageObj = properties.getPageObj();
     if (pageObj != null)
       pList.doList(
           pageObj.getCurrentPage() == null ? 0 : pageObj.getCurrentPage(),
           pageObj.getPageSize() == null ? 0 : pageObj.getPageSize());
   } else pList.doList(0, -1);
   return pList;
 }
예제 #2
0
 public IPageList list(IQueryObject properties) {
   if (properties == null) {
     return null;
   }
   String query = properties.getQuery();
   Map params = properties.getParameters();
   GenericPageList pList = new GenericPageList(Group.class, query, params, this.groupDao);
   if (properties != null) {
     PageObject pageObj = properties.getPageObj();
     if (pageObj != null)
       pList.doList(
           (pageObj.getCurrentPage() == null) ? 0 : pageObj.getCurrentPage().intValue(),
           (pageObj.getPageSize() == null) ? 0 : pageObj.getPageSize().intValue());
   } else {
     pList.doList(0, -1);
   }
   return pList;
 }