Untitled
unknown
java
3 years ago
1.1 kB
6
Indexable
dataProvider = DataProvider .fromFilteringCallbacks( query -> { Map<String, Object> filters = new HashMap<>(); filters.put("offset", query.getOffset()); filters.put("limit", query.getLimit()); filters.put("accountId", filterAccountTBL.getAccountId()); filters.put("name", filterAccountTBL.getName()); filters.put("allowNegativeBalance", filterAccountTBL.getAllowNegativeBalance()); return accountServices.getAccount(filters).stream(); }, query -> { Map<String, Object> filters = new HashMap<>(); filters.put("accountId", filterAccountTBL.getAccountId()); filters.put("name", filterAccountTBL.getName()); filters.put("allowNegativeBalance", filterAccountTBL.getAllowNegativeBalance()); LOG.info("Count : {}", accountServices.getAccountCount(filters)); return accountServices.getAccountCount(filters); }); accountData.setPageSize(20);
Editor is loading...