Skip to content

Commit f97ed6c

Browse files
committed
取消通配符的使用方式
Signed-off-by: dbgroupdlmu <wangxite@dlmu.edu.cn>
1 parent e8a5b1f commit f97ed6c

File tree

3 files changed

+46
-4
lines changed

3 files changed

+46
-4
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JdbcPagingItemReaderBuilder.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,20 @@
2121
import org.springframework.batch.item.database.JdbcPagingItemReader;
2222
import org.springframework.batch.item.database.Order;
2323
import org.springframework.batch.item.database.PagingQueryProvider;
24-
import org.springframework.batch.item.database.support.*;
24+
import org.springframework.batch.item.database.support.AbstractSqlPagingQueryProvider;
25+
import org.springframework.batch.item.database.support.Db2PagingQueryProvider;
26+
import org.springframework.batch.item.database.support.DerbyPagingQueryProvider;
27+
import org.springframework.batch.item.database.support.H2PagingQueryProvider;
28+
import org.springframework.batch.item.database.support.HanaPagingQueryProvider;
29+
import org.springframework.batch.item.database.support.HsqlPagingQueryProvider;
30+
import org.springframework.batch.item.database.support.MariaDBPagingQueryProvider;
31+
import org.springframework.batch.item.database.support.MySqlPagingQueryProvider;
32+
import org.springframework.batch.item.database.support.OraclePagingQueryProvider;
33+
import org.springframework.batch.item.database.support.PostgresPagingQueryProvider;
34+
import org.springframework.batch.item.database.support.SqlServerPagingQueryProvider;
35+
import org.springframework.batch.item.database.support.SqlitePagingQueryProvider;
36+
import org.springframework.batch.item.database.support.SybasePagingQueryProvider;
37+
import org.springframework.batch.item.database.support.KingbasePagingQueryProvider;
2538
import org.springframework.batch.support.DatabaseType;
2639
import org.springframework.jdbc.core.BeanPropertyRowMapper;
2740
import org.springframework.jdbc.core.DataClassRowMapper;

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/DefaultDataFieldMaxValueIncrementerFactory.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,21 @@
3434
import org.springframework.jdbc.support.incrementer.SybaseMaxValueIncrementer;
3535
import org.springframework.jdbc.support.incrementer.MariaDBSequenceMaxValueIncrementer;
3636

37-
import static org.springframework.batch.support.DatabaseType.*;
37+
import static org.springframework.batch.support.DatabaseType.DB2;
38+
import static org.springframework.batch.support.DatabaseType.DB2AS400;
39+
import static org.springframework.batch.support.DatabaseType.DB2ZOS;
40+
import static org.springframework.batch.support.DatabaseType.DERBY;
41+
import static org.springframework.batch.support.DatabaseType.H2;
42+
import static org.springframework.batch.support.DatabaseType.HANA;
43+
import static org.springframework.batch.support.DatabaseType.HSQL;
44+
import static org.springframework.batch.support.DatabaseType.MARIADB;
45+
import static org.springframework.batch.support.DatabaseType.MYSQL;
46+
import static org.springframework.batch.support.DatabaseType.ORACLE;
47+
import static org.springframework.batch.support.DatabaseType.POSTGRES;
48+
import static org.springframework.batch.support.DatabaseType.SQLITE;
49+
import static org.springframework.batch.support.DatabaseType.SQLSERVER;
50+
import static org.springframework.batch.support.DatabaseType.SYBASE;
51+
import static org.springframework.batch.support.DatabaseType.KINGBASE;
3852

3953
/**
4054
* Default implementation of the {@link DataFieldMaxValueIncrementerFactory} interface.

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/SqlPagingQueryProviderFactoryBean.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@
1515
*/
1616
package org.springframework.batch.item.database.support;
1717

18+
import static org.springframework.batch.support.DatabaseType.DB2;
19+
import static org.springframework.batch.support.DatabaseType.DB2VSE;
20+
import static org.springframework.batch.support.DatabaseType.DB2ZOS;
21+
import static org.springframework.batch.support.DatabaseType.DB2AS400;
22+
import static org.springframework.batch.support.DatabaseType.DERBY;
23+
import static org.springframework.batch.support.DatabaseType.H2;
24+
import static org.springframework.batch.support.DatabaseType.HANA;
25+
import static org.springframework.batch.support.DatabaseType.HSQL;
26+
import static org.springframework.batch.support.DatabaseType.MARIADB;
27+
import static org.springframework.batch.support.DatabaseType.MYSQL;
28+
import static org.springframework.batch.support.DatabaseType.ORACLE;
29+
import static org.springframework.batch.support.DatabaseType.POSTGRES;
30+
import static org.springframework.batch.support.DatabaseType.SQLITE;
31+
import static org.springframework.batch.support.DatabaseType.SQLSERVER;
32+
import static org.springframework.batch.support.DatabaseType.SYBASE;
33+
import static org.springframework.batch.support.DatabaseType.KINGBASE;
34+
1835
import java.util.HashMap;
1936
import java.util.LinkedHashMap;
2037
import java.util.Map;
@@ -29,8 +46,6 @@
2946
import org.springframework.util.Assert;
3047
import org.springframework.util.StringUtils;
3148

32-
import static org.springframework.batch.support.DatabaseType.*;
33-
3449
/**
3550
* Factory bean for {@link PagingQueryProvider} interface. The database type will be
3651
* determined from the data source if not provided explicitly. Valid types are given by

0 commit comments

Comments
 (0)