Commit Graph

1159 Commits

Author SHA1 Message Date
Mahmoud Ben Hassine
e8bbde10e5 Remove unused imports 2021-09-12 22:23:56 +02:00
Mahmoud Ben Hassine
f85a662ebf Refine contribution #3934
* Add default methods in all listener interfaces
* Remove usage of newly deprecated support classes

Issue #3924
2021-09-10 22:05:02 +02:00
Mahmoud Ben Hassine
36b1d0af3c Remove unused parameter in SqlPagingQueryUtils#generateLimitGroupedSqlQuery 2021-09-09 21:01:54 +02:00
Glenn Renfro
6c619b9f94 FlatFileItemWriter now uses charset to determine default encoding
It now matches the encoding scheme of FlatFileItemReader

Resolves #1154
2021-09-09 15:03:58 +02:00
Rémi Kaeffer
a6d68138ff Fix double "the" typo everywhere in source code 2021-09-03 19:07:19 +02:00
Henning Pöttker
9f4127fb1d Fix HippyMethodInvoker by not considering unsuitable candidates
Resolves #3794
2021-09-03 14:43:54 +02:00
Mahmoud Ben Hassine
e2c0b891c8 Deprecate support for Neo4j
This commit deprecates support for Neo4j
in favor of the spring-batch-neo4j extension

Resolves #3956
2021-09-02 13:19:53 +02:00
Ilya Samartsev
595abff170 Fix NPE in sql exception translation
Resolves #3968
2021-08-18 20:06:41 +02:00
Mahmoud Ben Hassine
bb3809cf55 Remove deprecated APIs
Resolves #3836
2021-08-17 21:14:53 +02:00
Mahmoud Ben Hassine
f995c83b16 Extract count key as constant in ResourcesItemReader 2021-08-12 22:12:00 +02:00
Mahmoud Ben Hassine
f83ba20173 Remove usage of reflection to call session.close in HibernateItemReaderHelper 2021-08-12 21:59:55 +02:00
Mahmoud Ben Hassine
27e11b52f9 Remove usage of deprecated APIs
Resolves #3838
2021-08-12 15:51:02 +02:00
Mahmoud Ben Hassine
31899d5fc3 Remove usage of deprecated APIs
Issue #3838
2021-08-11 20:23:12 +02:00
Henning Pöttker
64c09c523e Replaces deprecated interfaces
Replaces the deprecated
- type InstantiationAwareBeanPostProcessorAdapter
- type GenericTypeResolver
- method StringUtils::isEmpty
- field BigDecimal::ROUND_HALF_UP

Issue #3838
2021-08-11 15:20:18 +02:00
Henning Pöttker
7242f8fe77 Replace deprecated TransactionSynchronizationAdapter
Issue #3838
2021-08-10 15:28:02 +02:00
Philippe Marschall
f15edd414a Fix some raw types 2021-08-10 12:41:19 +02:00
Henning Pöttker
8258325413 Refactor deprecated method extractDatabaseMetaData
Issue #3838
2021-08-09 18:22:35 +02:00
Mahmoud Ben Hassine
66c33372a6 Remove unused logger in MongoItemReader 2021-08-05 21:17:26 +02:00
abielewicz
f4e14ddf66 Change the order in which datum writer is selected
Due to GenericRecord being checked before SpecificRecordBase,
GenericDatumWriter was used incorrectly for types that extend
SpecificRecordBase.

Resolves #3859
2021-05-18 17:46:31 +02:00
이동욱
4b8331d724 Replace ArrayList with LinkedList in ListItemReader
Issue #3782
2021-05-18 10:30:20 +02:00
Parikshit Dutta
d76c083b04 Updated verifyCursorPosition default to true in JdbcCursorItemReaderBuilder
Issue #3893
2021-05-12 14:51:00 +02:00
Marten Deinum
11bac7c4e1 Reduce the toCharArray overhead
Both the PatternMatcher and JdbcParameterUtils use String.toCharArray for
processing. This will create a new char[] which needs to be collected. The
same code has been rewritten to use String.charAt to reduce the overhead.

Additionally unneeded object creation in the PatternMatcher has been removed
as well, to reduce further objects needed to be gc'ed.
2021-03-17 18:25:18 +01:00
Marten Deinum
e9bdcc6d66 Better sizes for StringBuilder
StringBuilder by default has a size of 16, however there
are some places that already create larger strings already.
For efficiency and garbage reduction it would be better to have
larger sizes to begin with.
2021-03-17 15:50:38 +01:00
Marten Deinum
b7d144c10d Added isXXXEnabled for logging statements
Guarded the logging statements which do concatenation of strings
or calling toString on objects. When a log level isn't enabled
this still would produce garbage that would need to be collected.

Guarded all logging up to info, warn and error can be assumed to be
enabled on a production system.
2021-03-17 14:50:57 +01:00
Niels Ferguson
63b6dea514 Fix incorrect usage of StringBuilder#append in TransactionAwareBufferedWriter
Issue #3745
2021-03-10 10:13:24 +01:00
Mahmoud Ben Hassine
a15496805b Add timeout when flushing items to Kafka in KafkaItemWriter
Issue #3773
2021-03-09 14:48:25 +01:00
Mahmoud Ben Hassine
572a302725 Refine contribution #3827
* Update year in licence headers
* Update Javadoc
* Add `this` keyword where appropriate
2021-03-09 14:07:15 +01:00
Jacob Botuck
c886a60b4d KafkaItemWriter.write should not return until items are confirmed to have been written
Issue #3773
2021-03-09 14:04:19 +01:00
Mahmoud Ben Hassine
7b2d7d1993 Refine af14a2e471
* Make default constructors call other constructors with default values
* Fix formatting
* Update year in license headers
2021-02-23 15:56:51 +01:00
Marten Deinum
af14a2e471 Provide constructors for injection
Currently when reading/writing JSON and using the reader/marshaller provided
and you want a custom Gson or ObjectMapper instance it still creates the not
needed instance. Move the construction to a constructor and provide a constructor
to directly pass in the pre-configured Gson or ObjectMapper instance.

The same approach is used in Spring itself where Gson or ObjectMapper instances
can be passed in.
2021-02-23 15:39:53 +01:00
Mahmoud Ben Hassine
fa26246d80 Fix Javadoc errors 2021-02-02 13:43:24 +01:00
Mahmoud Ben Hassine
c8e5e507f4 Polish contribution feb46fd3f7
* Update year in license header
* Use "this" keyword where appropriate
2020-11-27 23:19:24 +01:00
Aditya Sathe
feb46fd3f7 Make kafkaTemplate protected in KafkaItemWriter
Issue #3802
2020-11-27 23:14:05 +01:00
Antoine Kapps
cbdb251441 Fix incorrect behaviour of RepositoryItemReader#jumpToItem() on restart
* Corrects unit tests with expected behavior.
* Creates integration tests highlighting Hibernate lazy-loading failure if the reader has requested the page on open().

Issue #1074
2020-11-20 13:17:43 +01:00
lucap
7d45f2c567 Use isQuoteCharacter instead of direct char comparison in DelimitedLineTokenizer
Issue #682
2020-11-19 16:48:03 +01:00
Parikshit Dutta
1ce4da5cce Fix for setting name of StaxEventItemReader at build 2020-09-25 10:17:47 +02:00
Parikshit Dutta
c2625b1f87 Add support to build StaxEventItemReader when no Resource is provided
Resolves #3736
2020-09-21 14:22:32 +02:00
Mahmoud Ben Hassine
4000d1d579 Polish contribution 2020-09-21 13:16:38 +02:00
Santiago Molano
c78e2b518b Add support to build JsonItemReader when no Resource is provided
Resolves #3731
2020-09-21 13:16:37 +02:00
Mahmoud Ben Hassine
41854008e8 Add JpaCursorItemReader implementation
Issue #901
2020-09-16 15:52:28 -05:00
Mahmoud Ben Hassine
264243b73c Deprecate org.springframework.batch.item.xml.StaxUtils
This commit deprecates org.springframework.batch.item.xml.StaxUtils
in favor of org.springframework.util.xml.StaxUtils.

Resolves #3779
2020-09-16 10:08:28 +02:00
Mahmoud Ben Hassine
9449551d9f Deprecate Alignment enum
Resolves #3778
2020-09-15 20:59:25 +02:00
Mahmoud Ben Hassine
08d7f56eea Deprecate AbstractNeo4jItemReader
Resolves #3777
2020-09-15 20:39:40 +02:00
Mahmoud Ben Hassine
f6a8d10595 Deprecate MultiResourceItemReader#getCurrentResource
Resolves #3776
2020-09-15 17:00:08 +02:00
Michael Minella
7e485a1b2b Polish 2020-09-14 10:01:13 -05:00
Mahmoud Ben Hassine
615a4aee2c Add initial support for Java 14 records mapping
Issue #3693
2020-09-10 10:23:07 +02:00
Mahmoud Ben Hassine
65d31bff1d Polish d65203e2d3
* Minor formatting update
* Use a regexp to discard xml header in tests
2020-09-09 21:09:50 +02:00
Parikshit Dutta
d65203e2d3 Add support for 'standalone' attribute in StaxEventItemWriter
Issue #758
2020-09-09 21:09:10 +02:00
Mahmoud Ben Hassine
ce22cddbbc Add partitionOffsets setter in KafkaItemReaderBuilder
Resolves #3761
2020-08-14 21:39:27 +02:00
Mahmoud Ben Hassine
15a393b8ef Add ability to start reading from a custom offset in KafkaItemReader
Issue #737
2020-08-10 12:18:49 +02:00