kapok

垃圾桶,嘿嘿,我藏的这么深你们还能找到啊,真牛!

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  455 随笔 :: 0 文章 :: 76 评论 :: 0 Trackbacks

暂时没有太多时间求证,暂时记录在这里,根据这几句话好像是说valueList的分页也是假分页,仅仅是取ValueList的subList?

DefaultValueListHandlerImpl implements ValueListHandler


if ((adapterType & ValueListAdapter.DO_PAGE) == ValueListAdapter.DO_PAGE)
         {

            if (valueList.getValueListInfo() != null && valueList.getList() != null
                  && valueList.getValueListInfo().getPagingNumberPer() < valueList.getValueListInfo().getTotalNumberOfEntries())
            {
               int start = (valueList.getValueListInfo().getPagingPage() - 1) * valueList.getValueListInfo().getPagingNumberPer();
               int end = Math.min(start + valueList.getValueListInfo().getPagingNumberPer(), valueList.getList().size());
               valueList = new DefaultListBackedValueList(valueList.getList().subList(start, end), valueList.getValueListInfo());
               if (LOGGER.isDebugEnabled())
               {
                  LOGGER.debug("The ValueList was paged by post process.");
               }
            }
         }

posted on 2005-05-30 21:34 笨笨 阅读(508) 评论(0)  编辑  收藏 所属分类: J2EEHibernateAndSpringALL

只有注册用户登录后才能发表评论。


网站导航: