Drummond Dawson
4d39806820
JdbcCursorItemReader's fields should be private
2019-03-18 11:14:45 +01:00
Drummond Dawson
15dd8e280c
List iteration add can be replaced with addAll
2019-03-18 10:58:57 +01:00
Mahmoud Ben Hassine
7303de3933
Fix build
...
This commit fixes a compilation issue due to a change in
spring-data-common (DATACMNS-1496).
2019-03-15 16:31:13 +01:00
Mahmoud Ben Hassine
50f400cf5a
Fix MongoItemReader tests
...
Spring Data MongoDB v2.2 upgraded the mongodb java driver to v3.10
(See DATAMONGO-2198) which has changed the JSON serialization format.
This commit fixes expected values to the right format. Note that
these changes are related to MongoDB APIs only and batch users should
not be impacted.
2019-03-07 15:59:13 +01:00
Yanming Zhou
6c5476780e
Treat MariaDB as MySQL
...
MariaDB is a fork of MySQL
2019-02-13 15:25:52 -06:00
Mahmoud Ben Hassine
7e9cd07cbb
Fix Javadoc errors
2019-01-30 09:30:08 +01:00
Mahmoud Ben Hassine
fbe345630b
Fix build warnings
2019-01-29 23:36:53 +01:00
Mahmoud Ben Hassine
edfbdbb82a
Tweak XmlInputFactory settings
2019-01-14 14:47:10 +01:00
Mahmoud Ben Hassine
2a578ae663
Remove unused imports
2019-01-03 23:18:58 +01:00
Mahmoud Ben Hassine
a5748136d2
Fix typos
2019-01-03 23:00:19 +01:00
Drummond Dawson
fa62861015
BATCH-2771: Fix deprecations in DefaultDataFieldMaxValueIncrementerFactory
2018-11-29 15:33:31 +01:00
Mahmoud Ben Hassine
76c34c7f72
fix build warnings
2018-11-29 15:17:01 +01:00
Mahmoud Ben Hassine
e5ac0e9975
Polish 2f0c2a6772
2018-11-28 22:32:11 +01:00
Drummond Dawson
2f0c2a6772
BATCH-2761: Varargs in reader, processor, and writer builders
...
If a builder has a builder method that takes a List, it should also provide a builder method that takes a varargs.
2018-11-28 20:34:11 +01:00
Olivier Bourgain
2ee15d2f4c
Remove call to String.toCharArray
2018-11-28 15:06:58 +01:00
Drummond Dawson
424514a17b
Replace explicit type with diamond operator in infrastructure module
2018-11-06 21:03:33 +01:00
Mahmoud Ben Hassine
2d7caa3222
Fix typo
...
Resolves BATCH-2758
2018-11-02 21:52:40 +01:00
Mahmoud Ben Hassine
249fa2673e
Fix typos
2018-10-02 22:40:56 +02:00
Stefano Cordio
df2e778fbd
Minor refactoring
...
* Remove unneeded exception declarations
* Collapse catch blocks
* Replace string concatenation with builder append
2018-10-02 22:04:59 +02:00
Mahmoud Ben Hassine
a591008eba
Upgrade dependencies for Boot 2.1
2018-09-18 18:45:07 +02:00
Evgenii Strepetov
7a3248cabf
Fix JsonFileItemWriter for multiple write's
...
Resolves BATCH-2749
2018-09-12 08:59:32 -05:00
Mahmoud Ben Hassine
9b8a6d1d1a
Fix javadoc of StaxEventItemReader#setStrict in regards to default value
...
The Javadoc of StaxEventItemReader#setStrict says that the default value
of the parameter is false while it is true.
Resolves BATCH-2749
2018-09-04 21:45:13 +02:00
Mahmoud Ben Hassine
e83ed1db11
Add convenience methods in FlatFileItemWriterBuilder to generate delimited files
...
Resolves BATCH-2696
2018-08-31 15:51:44 -05:00
Mahmoud Ben Hassine
70d0e3c510
Add JSR-305 annotations to public APIs
...
(Partially) Resolves BATCH-2688
2018-08-31 15:11:50 -05:00
Mahmoud Ben Hassine
8af965cac5
Update javadoc
2018-08-31 19:47:49 +02:00
Mahmoud Ben Hassine
adc90b220d
Fix typo in method name HibernatePagingItemReaderBuilder#useSatelessSession
...
Resolves BATCH-2745
2018-08-31 10:50:50 -05:00
Mahmoud Ben Hassine
80d1a24f52
Allow whitespace characters as delimiters in FlatFileItemReader
...
Resolves BATCH-2738
2018-08-31 10:32:59 -05:00
Mahmoud Ben Hassine
523c8083ab
Polish
2018-08-13 00:50:12 +02:00
Jerry Zhao
a8032196bf
reuse existing methods whenever applicable
...
remove unnecessary unboxing
2018-08-13 00:00:34 +02:00
Mahmoud Ben Hassine
96a0fc825e
Add JSR-305 annotations to public APIs
...
(Partially) Resolves BATCH-2688
2018-07-19 22:58:24 +02:00
Mahmoud Ben Hassine
9f2b752f3f
Add a validator based on the Bean Validation API
...
Resolves BATCH-2690
2018-07-10 00:08:18 +02:00
Mahmoud Ben Hassine
84d349ea9d
Add streaming json item writer
...
Resolves BATCH-2692
2018-07-09 16:41:56 -05:00
Michael Minella
7e402242db
Applied spelling fix noted by koraytugay
2018-06-08 10:56:30 -05:00
Mahmoud Ben Hassine
5cb3355fcb
Add package-info.java file in org.springframework.batch.item.json package
2018-06-05 16:38:56 +02:00
Mahmoud Ben Hassine
bd8daf0caf
Add missing unit test for the "read" method of JsonItemReader
2018-06-05 09:30:04 +02:00
Mahmoud Ben Hassine
5281d6d2aa
Add a streaming Json item reader
...
This commit adds a new Json item reader with two implementations based
on Jackson and Gson.
Resolves BATCH-2691
2018-05-31 08:07:34 -05:00
Mahmoud Ben Hassine
792025c31a
Add assertion on session factory in HibernateItemWriterBuilderTests
2018-05-18 15:46:58 +02:00
Mahmoud Ben Hassine
69b32e56e6
Add a builder for the JpaItemWriter
...
Resolves BATCH-2714.
2018-05-17 15:19:33 -05:00
woniper
c2b0a208c3
fix up code formatting and typo
2018-05-17 14:45:16 +02:00
Mahmoud Ben Hassine
2913c8de66
BATCH-2699: move derby's generated files under "build" directory
2018-04-20 17:25:20 -05:00
Drummond Dawson
d89102d7ff
Fix typos in JdbcPagingItemReaderBuilder
2018-04-18 14:39:21 +02:00
Drummond Dawson
32692f9583
Add beanRowMapper to JdbcCursorItemReaderBuilder
...
Sets the rowMapper of the JdbcCursorItemReader as a BeanPropertyRowMapper.
Resolves BATCH-2710
2018-04-13 11:41:32 +02:00
Mahmoud Ben Hassine
79f3a67883
BATCH-2397: fix parameters handling in MethodInvokingTaskletAdapter
...
When a tasklet is declared with xml using the shortcut version, the
MethodInvokingTaskletAdapter that is created automatically does not
address passing parameters expected by Tasklet#execute (which is
incorrect since the documentation of the schema attribute "method"
says the bean should define a method with the same signature).
This commit fixes parameters passing when using the shortcut version.
Resolves BATCH-2397
2018-01-26 13:15:20 -06:00
Mahmoud Ben Hassine
54f3a5c837
BATCH-2465: add note about the importance to have a unique key constraint on the sortKey
2018-01-25 17:29:56 -06:00
Mahmoud Ben Hassine
8af6841fa6
BATCH-2672: add method to set the encoding in the FlatFileItemReaderBuilder
2018-01-25 15:05:04 +01:00
Mahmoud Ben Hassine
a0773cac9b
BATCH-2668: Fixed failing test on CET timezone
...
In order to convert a String value to a Date, The `DefaultConversionService`
uses the constructor `java.util.Date(java.lang.String)` behind the scene
(from `org.springframework.core.convert.support.ObjectToObjectConverter.convert`).
This constructor throws a `java.lang.IllegalArgumentException` for values in
CET timezone, for example: "Thu Jan 04 09:05:50 CET 2018".
This commit updates the failing test to use a fixed timezone (UTC).
Resolves BATCH-2668
2018-01-11 08:07:54 -06:00
Michael Minella
7211947553
Polish
2017-12-01 06:49:16 -06:00
Philippe Marschall
73ca73688d
BATCH-2417 Drop JAXP 1.3 support
...
Spring 4 requires JDK 6 which includes JAXP 1.4. In Spring 4
`org.springframework.util.xml.StaxUtils` is public and directly
delegates to `javax.xml.transform.stax.StAXSource`. This means that
`org.springframework.batch.item.xml.StaxUtils#hasSpring30StaxSupport`
will always be true. Therefore a lot of code an be simplified by
calling the constructors directly instead of through reflection.
- remove reflection no longer needed in Spring 4
- move methods only used in tests to custom test class
Issue: BATCH-2417
2017-12-01 06:31:37 -06:00
Michael Minella
40db8a770f
Polish
2017-11-30 15:01:02 -06:00
Michael Minella
1c9c30c10d
Polish
2017-11-30 12:13:38 -06:00