Commit Graph

96 Commits

Author SHA1 Message Date
dsyer
3d11bd7cf1 Add schemas - generated files 2007-12-09 13:19:28 +00:00
lucasward
da7d198866 BATCH-248:Removed Brand from sample job. 2007-12-05 00:43:16 +00:00
dsyer
f4504b070e IN PROGRESS - issue BATCH-244: Repeated processing of items does not work
http://opensource.atlassian.com/projects/spring/browse/BATCH-244

Fixed bug in ResourceLinereader that causes first chunk to be lost if it fails.
2007-12-04 09:15:21 +00:00
dsyer
9de2e3e11d RESOLVED - issue BATCH-239: BatchCommandLineLauncher default bean reference does not match the one in samples 2007-11-29 18:40:16 +00:00
dsyer
78963fb2a3 RESOLVED - issue BATCH-194: Incorrect exception handling when using Hibernate
http://opensource.atlassian.com/projects/spring/browse/BATCH-194

Created HibernateAwareItemWriter to abstract the flushing concerns into a framework class - to use it you have to register it with the chunkOperations as an interceptor *and* inject it with an ItemWriter for the step concerned.  There might be an AOP approach to this that would reduce the burden of having to confugure it - we can look into that as part of the namespace / DSL work.  See hibernateJob.xml for sample.
2007-11-23 08:43:14 +00:00
dsyer
9d825c5881 IN PROGRESS - issue BATCH-194: Incorrect exception handling when using Hibernate
http://opensource.atlassian.com/projects/spring/browse/BATCH-194

Added Skippable capabilities to HibernateCursorInputSource.
2007-11-22 17:36:46 +00:00
dsyer
3915aeb1e9 IN PROGRESS - issue BATCH-194: Incorrect exception handling when using Hibernate
http://opensource.atlassian.com/projects/spring/browse/BATCH-194

Implemented a pretty good workaround in HibernateCreditWriter, which can probably be tightened up and made into a base class HibernateItemWriter.  Also had to make HibernateCursorInputSource Skippable (and it isn't yet Restartable so it's kind of broken - work in progress).  Plus the samples were configured to use SimpleStepExecutor which doesn't skip by default (makes me wonder if the restart sample actually does anything sensible).
2007-11-22 13:51:53 +00:00
dsyer
d7744aafb8 IN PROGRESS - issue BATCH-194: Incorrect exception handling when using Hibernate
http://opensource.atlassian.com/projects/spring/browse/BATCH-194

Added step operations to RepeatContextHolder (and changed name of implementation so it isn't tied to chunks).  This was needed anyway, otherwise you can't control the exception handling in the step operations properly.
2007-11-22 09:54:44 +00:00
dsyer
ad85f55175 RESOLVED - issue BATCH-211: Specify column names in flat file on first line
http://opensource.atlassian.com/projects/spring/browse/BATCH-211

Patch applied with some modifications.
2007-11-22 07:57:30 +00:00
dsyer
edff6be9b3 OPEN - issue BATCH-207: exit_message too short for holding long exceptions
http://opensource.atlassian.com/projects/spring/browse/BATCH-207

Added onFlushDirty to the entity interceptor in hibernate (and changed its name so not specific to entity name - BatchHibernateInterceptor).  Also truncating in Sql*Dao.  Only exit description is given special treatment for now, and the length is fixed at 250 - hard-coded and tightly coupled with the hibernate mapping and DDL).  Should be good enough for most scenarios.
2007-11-21 12:34:57 +00:00
dsyer
9606aabfb6 IN PROGRESS - issue BATCH-213: Rename OutputSource as ItemWriter
http://opensource.atlassian.com/projects/spring/browse/BATCH-213

More fields
2007-11-21 09:29:41 +00:00
dsyer
2684713ced IN PROGRESS - issue BATCH-213: Rename OutputSource as ItemWriter
http://opensource.atlassian.com/projects/spring/browse/BATCH-213

Field references
2007-11-21 09:29:00 +00:00
dsyer
5bc423461d IN PROGRESS - issue BATCH-213: Rename OutputSource as ItemWriter
http://opensource.atlassian.com/projects/spring/browse/BATCH-213

Renamed the classes and interfaces.
2007-11-21 09:07:36 +00:00
dsyer
70571b1ec3 RESOLVED - issue BATCH-201: Move responsibility for deciding if an exception terminates a batch to ExceptionHandler
http://opensource.atlassian.com/projects/spring/browse/BATCH-201

Change RepeatInterceptor as well to use ExitStatus instead of Object
2007-11-20 19:24:45 +00:00
dsyer
07be8cf6d8 IN PROGRESS - issue BATCH-201: Move responsibility for deciding if an exception terminates a batch to ExceptionHandler
http://opensource.atlassian.com/projects/spring/browse/BATCH-201

Nearly finished - ExceptionHandler is the owner of abnormal termination.
2007-11-20 18:55:15 +00:00
dsyer
2ca2d7a60c RESOLVED - issue BATCH-165: delegating ItemProvider and ItemProcessor
http://opensource.atlassian.com/projects/spring/browse/BATCH-165

Patch applied from JIRA.
2007-11-14 16:11:42 +00:00
dsyer
40d75b07e1 Fix build broken by jobs not being unique - so the order is important. 2007-11-14 10:50:20 +00:00
dsyer
7fb22cec72 OPEN - issue BATCH-194: Incorrect exception handling when using Hibernate
http://opensource.atlassian.com/projects/spring/browse/BATCH-194

Added some extra features to the HibernateCreditWriter sample - it needs to be a RepeatInterceptor (as per Joris's solution in BATCH-76) so it can force a flush inside the RepeatContext of the chunk.
2007-11-14 09:22:14 +00:00
dsyer
1c95e5a625 RESOLVED - issue BATCH-203: HibernateDao incorrectly returns an existing job.
http://opensource.atlassian.com/projects/spring/browse/BATCH-203
2007-11-14 08:49:48 +00:00
dsyer
3f340e2cf0 OPEN - issue BATCH-194: Incorrect exception handling when using Hibernate
http://opensource.atlassian.com/projects/spring/browse/BATCH-194
2007-11-13 19:03:56 +00:00
dsyer
d33065b15c RESOLVED - issue BATCH-184: sample jobs don't work with hibernate repository
http://opensource.atlassian.com/projects/spring/browse/BATCH-184
2007-11-13 14:16:07 +00:00
dsyer
ec63a1c1a1 RESOLVED - issue BATCH-195: JobIdentifier with simple string key
http://opensource.atlassian.com/projects/spring/browse/BATCH-195
2007-11-09 16:50:28 +00:00
dsyer
9a7ffaaf22 Refactor samples to use child context (useful for JMX demo as well). 2007-11-09 11:20:58 +00:00
dsyer
2237a14d88 Add ids to beans ro make them prettier in IDE graph 2007-11-07 08:55:25 +00:00
dsyer
82f753e18f Weird problem with eclipse build - was it just the .classpath entries not being exported? 2007-11-07 08:04:07 +00:00
dsyer
f8f4a806a2 Make Trade Serializable so it can be sent to remote processor. 2007-11-05 17:34:44 +00:00
dsyer
6a45a4457d Prevent error on closing non-step-scoped bean with step-scoped dependency 2007-11-05 14:42:17 +00:00
dsyer
497bd15a77 IN PROGRESS - issue BATCH-179: Separate input and output in samples
http://opensource.atlassian.com/projects/spring/browse/BATCH-179

Applied patch from JIRA and fixed remaining issue in output source (need to create missing directory)
2007-11-05 09:28:18 +00:00
lucasward
9dc7981c5d BATCH-189: Created AbstractTransactionalIoSource that can be the base class of both input and output sources.
Additionally, reorganized input and output source packages.
2007-11-05 04:12:42 +00:00
dsyer
7f09f4214c IN PROGRESS - issue BATCH-159: JobExecutor should return a JobExecution (which itself contains the ExitStatus)
http://opensource.atlassian.com/projects/spring/browse/BATCH-159

Make sure JobExecution has an ID (it is saved before being passed back to client).
2007-11-03 13:51:56 +00:00
dsyer
0cf5cb4bb2 IN PROGRESS - issue BATCH-159: JobExecutor should return a JobExecution (which itself contains the ExitStatus)
http://opensource.atlassian.com/projects/spring/browse/BATCH-159

APIs all pretty much in place now - JobLauncher returns JobExecution from the run methods.  There is some polishing and test coverage work to do.
2007-11-03 11:18:00 +00:00
dsyer
bf3881fc85 Revert Nfl test case. 2007-11-02 12:32:02 +00:00
dsyer
4a00848fce IN PROGRESS - issue BATCH-159: JobExecutor should return a JobExecution (which itself contains the ExitStatus)
http://opensource.atlassian.com/projects/spring/browse/BATCH-159

Refactored JobExecutorFacade into a package private interface - it's still useful in testing.
2007-11-02 12:29:18 +00:00
lucasward
a6515d9d72 Fixed Ibatisjob for updated package names. 2007-11-01 15:08:36 +00:00
lucasward
bd6ebc3f6f BATCH 186: modified the iBatis input source to now use the KeyGenerator, and moved into io.driving. io.orm package was romoved. 2007-11-01 12:19:19 +00:00
lucasward
c4dc54ba6b BATCH-167 and BATCH-186: Completed refactoring of database input package names, and added a KeyGenerator to be used by the DrivingQueryInputSource. 2007-11-01 11:36:43 +00:00
lucasward
25bb5ca391 BATCH-167:Need to update the samples, since the sql input sources' package names changed. 2007-10-29 16:46:41 +00:00
dsyer
98e54fb504 Wrong class name for job launcher (but build didn't fail) 2007-10-26 07:48:30 +00:00
dsyer
9495bf24fd IN PROGRESS - issue BATCH-159: JobExecutor should return a JobExecution (which itself contains the ExitStatus)
http://opensource.atlassian.com/projects/spring/browse/BATCH-159

Merged JobLauncher implementations together and separated out thread interruption and JMX notification responsibilities to separate collaborators.
2007-10-24 17:35:15 +00:00
dsyer
3e53a04c6c Fix broken test where customer data was not initialised 2007-10-23 12:55:13 +00:00
dsyer
455ed2fade RESOLVED - issue BATCH-145: Move CollectionItemProvider to infrastructure from samples
http://opensource.atlassian.com/projects/spring/browse/BATCH-145

Moved it into infrastructure.
2007-10-21 15:36:37 +00:00
dsyer
b66119a800 IN PROGRESS - issue BATCH-145: Move CollectionItemProvider to infrastructure from samples
http://opensource.atlassian.com/projects/spring/browse/BATCH-145
2007-10-21 15:29:06 +00:00
dsyer
7352cdfe5f Removed reference to name property 2007-10-21 15:17:33 +00:00
lucasward
2c7d52a5ae BATCH-173 Misc Bug fixes. 2007-10-18 03:52:28 +00:00
dsyer
383575ebe2 Oops - missing bean ID 2007-10-15 07:46:32 +00:00
dsyer
ac25be77e5 Organise imports 2007-10-15 07:01:40 +00:00
lucasward
ba7490b452 BATCH 144 and BATCH 150: create Hibernate and iBatis input sources with sample jobs. 2007-10-15 05:23:00 +00:00
dsyer
dc7d7bc886 Reinstate aop:scoped-proxy after SPR-3804 was fixed. 2007-10-12 15:59:22 +00:00
dsyer
0cc6d6ab2d RESOLVED - issue BATCH-50: Allow fixed-length file columns with column ranges
http://opensource.atlassian.com/projects/spring/browse/BATCH-50

Applied patch (and moved property editor).
2007-10-10 10:00:01 +00:00
dsyer
9681c485aa RESOLVED - issue BATCH-161: OutputSource still extends ResourceLifecycle
http://opensource.atlassian.com/projects/spring/browse/BATCH-161
2007-10-10 09:46:03 +00:00