DelimitedLineTokenizer was refactored to improve its performance but its behavior was also slightly changed.
When the input is an empty csv string with double quotes, e.g. the java
String line = "\"\""; the tokenizer returns the same String, whereas
before it was returning an empty string.
This is due to the condition checking for quotes to remove not stripping
the double quotes from the empty csv string (because its length is 2 and
the code check for strictly greater than 2).
The previous code is there 973fe44d6c/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/DelimitedLineTokenizer.java (L202) and checking for
double quotes at the start and end of the string without special
handling for the empty string.
At test is also added to ensure this won't break again.
Resolves BATCH-2657
Add support for DB2AS400 to DefaultDataFieldMaxValueIncrementerFactory.
Apparently, DB2AS400 is using the same syntax for sequence value
retrieval as standard DB2.
resolves BATCH-2525
This commit adds a new `ItemProcessor` that delegates to a
`java.util.function.Function`. It also enables users to configure a
`Function` as an `ItemProcessor` via the builders (so they don't need to
worry about the `ItemProcessor` wrapper in the first place).
Resolves BATCH-2641
MultiResourceItemWriter delegating to a StaxEventItemWriter doesn't restart properly.
* Changed the open() method in MultiResourceItemWriter by setting the flag 'opened' to true.
Updated PR with code review comments.
Stack is a pre Java 1.2 class that is slower than ArrayList as it
incurs additional synchronization overhead.
- replace Stack with ArrayList where it's not public API
Issue: BATCH-2408
This commit migrates the old Spring Batch documentation to a new
asciidoc toolchain. It will be the first piece in modernizing the
existing Spring Batch documentation. Future steps will include making
java based configuraion more prominant in the reference documentation.
Resolves BATCH-2620
HibernateCursorItemReader
This commit adds convenience methods for simplifying the creation of a
HibernateNativeQueryProvider using the HibernateCursorItemReaderBuilder.
This commit removes the iBatis based ItemReaders and ItemWriter. They
were depricated in the 3.0 line in favor of the MyBatis natively
provided ItemReader and ItemWriter implementations. This removes those
depricated components.
Resolves BATCH-2591