Commit Graph

102 Commits

Author SHA1 Message Date
Mahmoud Ben Hassine
84d349ea9d Add streaming json item writer
Resolves BATCH-2692
2018-07-09 16:41:56 -05: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
2913c8de66 BATCH-2699: move derby's generated files under "build" directory 2018-04-20 17:25:20 -05:00
Michael Minella
f61679b55f Added updates for properties files as well 2017-11-27 12:06:29 -06:00
Michael Minella
52d2c257c5 Version updates 2017-10-23 15:52:55 -05:00
Michael Minella
b180c75ce0 Housecleaning of build warnings 2017-09-15 15:58:22 -05:00
Michael Minella
5d268219fe Create a builder for the JpaPagingItemReader
This commit adds a builder for the JpaPagingItemReader

Resolves BATCH-2591
2017-05-03 16:02:37 -05:00
Michael Minella
b3e8d3ea87 Removed iBatis based components
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
2017-05-03 10:00:41 -05:00
Michael Minella
263e978a1f Updated for various code warnings
This commit addresses a number of deprications and other code warnings.
There are still many more to address, but this is a start.
2017-05-02 12:48:03 -05:00
Philippe Marschall
dcc9da8273 BATCH-2407 Use StringBuilder instead of StringBuffer
With Java 1.5 StringBuilder is preferred over StringBuffer for single
threaded access as is has less overhead.

This is evidenced by the class comment of StringBuffer and Effective
Java 2nd Edition Item 67: Avoid excessive synchronization.

> The StringBuilder class should generally be used in preference to
> this one, as it supports all of the same operations but it is faster,
> as it performs no synchronization.

 - replace StringBuffer with StringBuilder where possible

Issue: BATCH-2407
2015-08-06 10:22:39 -05:00
Philippe Marschall
7092102748 BATCH-2411 Remove @SuppressWarnings("unchecked")
The source code contains various @SuppressWarnings("unchecked") that
are no longer unnecessary since the relevant APIs have been upgraded to
support Java 5 generics.

 - remove @SuppressWarnings("unchecked") where no longer unnecessary

Issue: BATCH-2411
2015-08-05 18:04:40 -05:00
Michael Minella
7be035cd3d Fixed NPE in integration test 2015-05-20 22:31:30 -05:00
Michael Minella
37e7ad61b7 Updates to continue debugging 2015-04-14 14:10:51 -04:00
Michael Minella
d42692cc7a Debugging statements for broken unit test (test only fails in CI environment) 2015-04-14 13:53:05 -04:00
Michael Minella
7c60b055c3 Removed dependency on ParameterizedRowMapper
To support Spring Framework 4.2 which removes ParameterizedRowMapper,
all references to that were switched to RowMapper.  As of Spring 3, the
interfaces are identicle so this should cause no backward compatability
issues.

BATCH-2369
2015-03-31 14:08:38 -05:00
Michael Minella
a066647149 Change prefetch on jms tests to 0 and add @DirtiesContext to tests
With the upgrade to ActiveMQ 5.9.0 as part of Spring IO, ActiveMQ's
prefetch behavior changed.  With each call to
JmsTemplate#receiveAndConvert, the template creates a new consumer.  In
these tests, the first call created a consumer which prefetched all the
test messages on the queue, leaving them unavailable for the second
consumer the JmsTemplate created.  By setting prefetch to 0, the
messages are now available for the subsequent
JmsTemplate#receiveAndConvert calls.  This addresses BATCH-2248.
2014-10-27 17:16:49 -05:00
Michael Minella
090e6f2039 BATCH-2248: Fixes for Ldif reader tests 2014-10-17 11:40:38 -05:00
Andy Wilkinson
513e47fc9b Update configuration of Spring IO plugin
This commit updates the configuration of the IO plugin to use an
external property, platformVersion, and to only apply the plugin when
this property is set. This removes the declaration of a snapshot
dependency from the normal build configuration and also breaks a
circular dependency between the projects that are in the Platform and
the Platform itself.

The commit also applies the configuration that was applied to the
standard test task, other than code coverage, to the new test tasks
that are created by the Spring IO plugin.

Two redundant Hibernate mapping files have been deleted. With more
recent versions of Hibernate the presence of these files was causing
test failures due to duplicate mappings.
2014-05-15 10:11:50 -05:00
Michael Minella
e7a4e348a5 BATCH-2229 & BATCH-2218: Removed OSGi related metadata and Maven POMs 2014-05-12 15:32:02 -05:00
Michael Minella
6d94ae9031 Updated hsqldb urls to use MVCC mode 2014-05-05 15:08:05 -05:00
Michael Minella
6913f5c022 Updated Spring Retry to 1.1.0.RC1 2014-05-02 13:04:31 -05:00
Gunnar Hillert
11a8ec1dc4 BATCH-2144 - Merged Michael's changes
* Merge PR https://github.com/ghillert/spring-batch/pull/1
* Update Spring Integration dependency to 4.0.0.RC1
* Update docbook-reference-plugin to 0.2.8
2014-04-24 12:16:17 -05:00
Gunnar Hillert
f1d71a06f4 BATCH-2144 Convert Spring Batch to use Gradle
* Use Gradle 1.11
* Remove SpringSource references
* Update JavaDoc overview
* Update Jacoco conf + Add license/manifest files
* Addresses also BATCH-2187
* Update a number of unit tests to not be ignored

Jira: https://jira.springsource.org/browse/BATCH-2144
2014-04-24 12:16:17 -05:00
jpraet
b26d272d43 cleanup 2014-04-02 14:35:53 -04:00
Michael Minella
b278239751 BATCH-2110: Updated batch to support Spring 4
* Refactored iBatis based readers and writers to not utilize
 SqlMapClientTemplate.
* Depricated all iBatis based readers and writers in favor of MyBatis's
 native Spring support.
* Updated XStream support to 1.4.4 and Jettison to 1.2 to be in
 alignment with Spring 4.
* Added the PooledEmbeddedDataSource to address the issue outlined in
 SPR-11372.
2014-02-06 11:34:33 -06:00
Will Schipp
7e1e66d677 migration from EasyMock to Mockito 2013-02-10 14:30:57 +00:00
Dave Syer
bc9ee74a25 BATCH-1950: Patch up build
* Ensure bundlor is available and remove from sample
* Tidy dependencies in some poms
* Update some template.mf dependencies
* Add .travis.yml for automated builds independent of bamboo
2013-01-18 13:46:02 +00:00
Michael Minella
c097055288 Removing redundant dependency on JPA 1.0 jar to fix integration test 2013-01-09 11:00:14 -06:00
Chris Schaefer
a6ab68bbbb BATCH-1940: Replace org.springframework.batch.support.JdbcTestUtils with org.springframework.test.jdbc.JdbcTestUtils 2012-12-31 08:35:06 -06:00
Chris Schaefer
5218748f7e BATCH-1931: Convert deprecated classes from the org.springframework.jdbc.core.simple package in infrastructure-tests 2012-12-17 08:55:48 +00:00
Michael Minella
5d2aac135d Moved Order to remove package circular dependency 2012-11-16 15:14:12 -06:00
Michael Minella
0580e33760 BATCH-1774: Updated to catch Throwable so Errors don't cause NPEs when processing results 2012-11-15 12:57:11 -06:00
Michael Minella
6380491187 BATCH-1691: Updated to correct order by processing 2012-11-07 14:34:45 -06:00
Michael Minella
ea4fdfdf15 BATCH-1691: Implemented group by functionality not impacted by paging 2012-11-06 16:41:31 -06:00
Michael Minella
1cf9573679 BATCH-1749: Updated for sorts to be more intuitive 2012-11-05 10:29:15 -06:00
Michael Minella
12d9918289 BATCH-1749: JdbcPagingItemReader now supports multi-column keys 2012-11-02 15:01:43 -05:00
Michael Minella
e827990f08 BATCH-1895: Updated to use spring-retry 2012-10-02 10:06:44 -05:00
Dave Syer
d372269e0b Fix broken test (new method in Spring 3.1 needs mock) 2012-09-24 16:37:14 +01:00
Chris Schaefer
d512ba8ff2 BATCH-1685: Upgrade minimum support level for Spring to 3.1.2 2012-09-12 06:08:36 +01:00
Dave Syer
8525afc5c5 BATCH-1774: add test case (unsuccessful so far) 2012-06-27 10:07:48 +01:00
David Thexton
8c445bcb08 BATCH-1860: Use sub query for Derby for JdbcPagingItemReader
Order the results before the ROW_NUM restriction is applied (and make related infrastructure tests more robust)
2012-06-07 16:45:51 +01:00
Dave Syer
e0ce10dcc0 Fix compiler warnings 2011-04-05 12:02:13 +01:00
Josh Long
0a77a5b4ed BATCH-1532: fix integration tests to work with Spring 3 2011-03-21 13:33:22 +00:00
Dave Syer
9c187e0e3a Add nested XML to integration tests 2011-01-14 09:44:18 +00:00
dsyer
abd66edb30 BATCH-1639: fix oracle jump to item 2010-10-09 15:25:45 +00:00
dsyer
d22bc927a2 BATCH-1595: tweak jump to item query for Oracle 2010-07-11 06:25:34 +00:00
dsyer
c918e770f0 BATCH-1590: tidy up oracle paging 2010-07-09 10:50:08 +00:00
dsyer
3984ba1791 BATCH-1590: fix another bug in oracle paging 2010-06-29 10:34:48 +00:00
dsyer
1ed666600d Add support for oracle to all infrastructure tests 2010-06-13 11:37:11 +00:00
dsyer
7721984c78 minor test tweak to fix build 2010-05-23 02:06:15 +00:00