public void requestBusinessValuePageAsync(BusinessValueSet valueSet) { offset = valueSet.getIndexOfFirstRecordInSet(); dataSize = valueSet.getPagingOptionValue(); buffer = new ArrayList<T>(dataSize); this.valueSet = valueSet; loadChunk(); }
private void loadChunk() { PaginationRequest<T> paginationRequest = paginationRequestProvider.get(); paginationRequest .paginate( valueSet.getSelectedAccounts(), offset, CHUNK_SIZE, ServerCommunicatorForBusinessValue.addSortedColumns(valueSet, paginationRequest), valueSet.getFilterCriteriaString()) .to(this) .fire(); offset += CHUNK_SIZE; }