/** * 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())); }
theMaxResultsPerPage = this.getMaxResultsPerPage(); strategy.appendField(locator, this, "maxResultsPerPage", buffer, theMaxResultsPerPage, (this.maxResultsPerPage!= null));
lhsMaxResultsPerPage = this.getMaxResultsPerPage(); Long rhsMaxResultsPerPage; rhsMaxResultsPerPage = that.getMaxResultsPerPage(); if (!strategy.equals(LocatorUtils.property(thisLocator, "maxResultsPerPage", lhsMaxResultsPerPage), LocatorUtils.property(thatLocator, "maxResultsPerPage", rhsMaxResultsPerPage), lhsMaxResultsPerPage, rhsMaxResultsPerPage, (this.maxResultsPerPage!= null), (that.maxResultsPerPage!= null))) { return false;
theMaxResultsPerPage = this.getMaxResultsPerPage(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maxResultsPerPage", theMaxResultsPerPage), currentHashCode, theMaxResultsPerPage, (this.maxResultsPerPage!= null));
if (maxResultsPerPageShouldBeCopiedAndSet == Boolean.TRUE) { Long sourceMaxResultsPerPage; sourceMaxResultsPerPage = this.getMaxResultsPerPage(); Long copyMaxResultsPerPage = ((Long) strategy.copy(LocatorUtils.property(locator, "maxResultsPerPage", sourceMaxResultsPerPage), sourceMaxResultsPerPage, (this.maxResultsPerPage!= null))); copy.setMaxResultsPerPage(copyMaxResultsPerPage);