|
1 | 1 | /*
|
2 |
| - * Copyright 2017-2022 the original author or authors. |
| 2 | + * Copyright 2017-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
56 | 56 | */
|
57 | 57 | public class JdbcPagingItemReaderBuilder<T> {
|
58 | 58 |
|
59 |
| - private DataSource dataSource; |
| 59 | + protected DataSource dataSource; |
60 | 60 |
|
61 |
| - private int fetchSize = JdbcPagingItemReader.VALUE_NOT_SET; |
| 61 | + protected int fetchSize = JdbcPagingItemReader.VALUE_NOT_SET; |
62 | 62 |
|
63 |
| - private PagingQueryProvider queryProvider; |
| 63 | + protected PagingQueryProvider queryProvider; |
64 | 64 |
|
65 |
| - private RowMapper<T> rowMapper; |
| 65 | + protected RowMapper<T> rowMapper; |
66 | 66 |
|
67 |
| - private Map<String, Object> parameterValues; |
| 67 | + protected Map<String, Object> parameterValues; |
68 | 68 |
|
69 |
| - private int pageSize = 10; |
| 69 | + protected int pageSize = 10; |
70 | 70 |
|
71 |
| - private String groupClause; |
| 71 | + protected String groupClause; |
72 | 72 |
|
73 |
| - private String selectClause; |
| 73 | + protected String selectClause; |
74 | 74 |
|
75 |
| - private String fromClause; |
| 75 | + protected String fromClause; |
76 | 76 |
|
77 |
| - private String whereClause; |
| 77 | + protected String whereClause; |
78 | 78 |
|
79 |
| - private Map<String, Order> sortKeys; |
| 79 | + protected Map<String, Order> sortKeys; |
80 | 80 |
|
81 |
| - private boolean saveState = true; |
| 81 | + protected boolean saveState = true; |
82 | 82 |
|
83 |
| - private String name; |
| 83 | + protected String name; |
84 | 84 |
|
85 |
| - private int maxItemCount = Integer.MAX_VALUE; |
| 85 | + protected int maxItemCount = Integer.MAX_VALUE; |
86 | 86 |
|
87 | 87 | private int currentItemCount;
|
88 | 88 |
|
@@ -329,7 +329,7 @@ public JdbcPagingItemReader<T> build() {
|
329 | 329 | return reader;
|
330 | 330 | }
|
331 | 331 |
|
332 |
| - private PagingQueryProvider determineQueryProvider(DataSource dataSource) { |
| 332 | + protected PagingQueryProvider determineQueryProvider(DataSource dataSource) { |
333 | 333 |
|
334 | 334 | try {
|
335 | 335 | DatabaseType databaseType = DatabaseType.fromMetaData(dataSource);
|
@@ -394,5 +394,4 @@ private PagingQueryProvider determineQueryProvider(DataSource dataSource) {
|
394 | 394 | throw new IllegalArgumentException("Unable to determine PagingQueryProvider type", e);
|
395 | 395 | }
|
396 | 396 | }
|
397 |
| - |
398 | 397 | }
|
0 commit comments