Example usage for org.springframework.batch.item.database PagingQueryProvider getSortKeys

List of usage examples for org.springframework.batch.item.database PagingQueryProvider getSortKeys

Introduction

In this page you can find the example usage for org.springframework.batch.item.database PagingQueryProvider getSortKeys.

Prototype

Map<String, Order> getSortKeys();

Source Link

Document

The sort keys.

Usage

From source file:org.springframework.batch.item.database.JdbcPagingQueryIntegrationTests.java

private Map<String, Object> getStartAfterValues(PagingQueryProvider queryProvider,
        List<Map<String, Object>> list) {
    Map<String, Object> startAfterValues = new LinkedHashMap<String, Object>();
    for (Map.Entry<String, Order> sortKey : queryProvider.getSortKeys().entrySet()) {
        startAfterValues.put(sortKey.getKey(), list.get(list.size() - 1).get(sortKey.getKey()));
    }//w  ww .  j a  va  2  s . c o  m
    return startAfterValues;
}