/** * Sets HTTP headers to HTTP servlet response per specified paging information. * * @param httpServletResponse the HTTP servlet response * @param pagingInfo the paging information DTO */ protected void addPagingHttpHeaders(HttpServletResponse httpServletResponse, PagingInfoDto pagingInfo) { httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_NUM, String.valueOf(pagingInfo.getPageNum())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_SIZE, String.valueOf(pagingInfo.getPageSize())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_COUNT, String.valueOf(pagingInfo.getPageCount())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_TOTAL_RECORDS_ON_PAGE, String.valueOf(pagingInfo.getTotalRecordsOnPage())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_TOTAL_RECORD_COUNT, String.valueOf(pagingInfo.getTotalRecordCount())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_MAX_RESULTS_PER_PAGE, String.valueOf(pagingInfo.getMaxResultsPerPage())); }
/** * Sets HTTP headers to HTTP servlet response per specified paging information. * * @param httpServletResponse the HTTP servlet response * @param pagingInfo the paging information DTO */ protected void addPagingHttpHeaders(HttpServletResponse httpServletResponse, PagingInfoDto pagingInfo) { httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_NUM, String.valueOf(pagingInfo.getPageNum())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_SIZE, String.valueOf(pagingInfo.getPageSize())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_PAGE_COUNT, String.valueOf(pagingInfo.getPageCount())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_TOTAL_RECORDS_ON_PAGE, String.valueOf(pagingInfo.getTotalRecordsOnPage())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_TOTAL_RECORD_COUNT, String.valueOf(pagingInfo.getTotalRecordCount())); httpServletResponse.setHeader(HTTP_HEADER_PAGING_MAX_RESULTS_PER_PAGE, String.valueOf(pagingInfo.getMaxResultsPerPage())); }
theTotalRecordCount = this.getTotalRecordCount(); strategy.appendField(locator, this, "totalRecordCount", buffer, theTotalRecordCount, (this.totalRecordCount!= null));
lhsTotalRecordCount = this.getTotalRecordCount(); Long rhsTotalRecordCount; rhsTotalRecordCount = that.getTotalRecordCount(); if (!strategy.equals(LocatorUtils.property(thisLocator, "totalRecordCount", lhsTotalRecordCount), LocatorUtils.property(thatLocator, "totalRecordCount", rhsTotalRecordCount), lhsTotalRecordCount, rhsTotalRecordCount, (this.totalRecordCount!= null), (that.totalRecordCount!= null))) { return false;
theTotalRecordCount = this.getTotalRecordCount(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalRecordCount", theTotalRecordCount), currentHashCode, theTotalRecordCount, (this.totalRecordCount!= null));
if (totalRecordCountShouldBeCopiedAndSet == Boolean.TRUE) { Long sourceTotalRecordCount; sourceTotalRecordCount = this.getTotalRecordCount(); Long copyTotalRecordCount = ((Long) strategy.copy(LocatorUtils.property(locator, "totalRecordCount", sourceTotalRecordCount), sourceTotalRecordCount, (this.totalRecordCount!= null))); copy.setTotalRecordCount(copyTotalRecordCount);