diff --git a/spring-batch-samples/.fbprefs b/spring-batch-samples/.fbprefs
deleted file mode 100644
index d498aadba..000000000
--- a/spring-batch-samples/.fbprefs
+++ /dev/null
@@ -1,116 +0,0 @@
-#FindBugs User Preferences
-#Wed Jul 23 12:11:15 BST 2008
-detectorAppendingToAnObjectOutputStream=AppendingToAnObjectOutputStream|true
-detectorBadAppletConstructor=BadAppletConstructor|false
-detectorBadResultSetAccess=BadResultSetAccess|true
-detectorBadSyntaxForRegularExpression=BadSyntaxForRegularExpression|true
-detectorBadUseOfReturnValue=BadUseOfReturnValue|true
-detectorBadlyOverriddenAdapter=BadlyOverriddenAdapter|true
-detectorBooleanReturnNull=BooleanReturnNull|true
-detectorCheckImmutableAnnotation=CheckImmutableAnnotation|true
-detectorCheckTypeQualifiers=CheckTypeQualifiers|true
-detectorCloneIdiom=CloneIdiom|true
-detectorComparatorIdiom=ComparatorIdiom|true
-detectorConfusedInheritance=ConfusedInheritance|true
-detectorConfusionBetweenInheritedAndOuterMethod=ConfusionBetweenInheritedAndOuterMethod|true
-detectorCrossSiteScripting=CrossSiteScripting|true
-detectorDoInsideDoPrivileged=DoInsideDoPrivileged|true
-detectorDontCatchIllegalMonitorStateException=DontCatchIllegalMonitorStateException|true
-detectorDontUseEnum=DontUseEnum|true
-detectorDroppedException=DroppedException|true
-detectorDumbMethodInvocations=DumbMethodInvocations|true
-detectorDumbMethods=DumbMethods|true
-detectorDuplicateBranches=DuplicateBranches|true
-detectorEmptyZipFileEntry=EmptyZipFileEntry|true
-detectorFinalizerNullsFields=FinalizerNullsFields|true
-detectorFindBadCast2=FindBadCast2|true
-detectorFindBadForLoop=FindBadForLoop|true
-detectorFindCircularDependencies=FindCircularDependencies|false
-detectorFindDeadLocalStores=FindDeadLocalStores|true
-detectorFindDoubleCheck=FindDoubleCheck|true
-detectorFindEmptySynchronizedBlock=FindEmptySynchronizedBlock|true
-detectorFindFieldSelfAssignment=FindFieldSelfAssignment|true
-detectorFindFinalizeInvocations=FindFinalizeInvocations|true
-detectorFindFloatEquality=FindFloatEquality|true
-detectorFindHEmismatch=FindHEmismatch|true
-detectorFindInconsistentSync2=FindInconsistentSync2|true
-detectorFindJSR166LockMonitorenter=FindJSR166LockMonitorenter|true
-detectorFindLocalSelfAssignment2=FindLocalSelfAssignment2|true
-detectorFindMaskedFields=FindMaskedFields|true
-detectorFindMismatchedWaitOrNotify=FindMismatchedWaitOrNotify|true
-detectorFindNakedNotify=FindNakedNotify|true
-detectorFindNonSerializableStoreIntoSession=FindNonSerializableStoreIntoSession|true
-detectorFindNonSerializableValuePassedToWriteObject=FindNonSerializableValuePassedToWriteObject|true
-detectorFindNonShortCircuit=FindNonShortCircuit|true
-detectorFindNullDeref=FindNullDeref|true
-detectorFindOpenStream=FindOpenStream|true
-detectorFindPuzzlers=FindPuzzlers|true
-detectorFindRefComparison=FindRefComparison|true
-detectorFindReturnRef=FindReturnRef|true
-detectorFindRunInvocations=FindRunInvocations|true
-detectorFindSelfComparison=FindSelfComparison|true
-detectorFindSelfComparison2=FindSelfComparison2|true
-detectorFindSleepWithLockHeld=FindSleepWithLockHeld|true
-detectorFindSpinLoop=FindSpinLoop|true
-detectorFindSqlInjection=FindSqlInjection|true
-detectorFindTwoLockWait=FindTwoLockWait|true
-detectorFindUncalledPrivateMethods=FindUncalledPrivateMethods|true
-detectorFindUnconditionalWait=FindUnconditionalWait|true
-detectorFindUninitializedGet=FindUninitializedGet|true
-detectorFindUnrelatedTypesInGenericContainer=FindUnrelatedTypesInGenericContainer|true
-detectorFindUnreleasedLock=FindUnreleasedLock|true
-detectorFindUnsyncGet=FindUnsyncGet|true
-detectorFindUselessControlFlow=FindUselessControlFlow|true
-detectorHugeSharedStringConstants=HugeSharedStringConstants|true
-detectorIDivResultCastToDouble=IDivResultCastToDouble|true
-detectorIncompatMask=IncompatMask|true
-detectorInefficientMemberAccess=InefficientMemberAccess|false
-detectorInefficientToArray=InefficientToArray|true
-detectorInfiniteLoop=InfiniteLoop|true
-detectorInfiniteRecursiveLoop=InfiniteRecursiveLoop|true
-detectorInfiniteRecursiveLoop2=InfiniteRecursiveLoop2|false
-detectorInheritanceUnsafeGetResource=InheritanceUnsafeGetResource|true
-detectorInitializationChain=InitializationChain|true
-detectorInstantiateStaticClass=InstantiateStaticClass|true
-detectorInvalidJUnitTest=InvalidJUnitTest|true
-detectorIteratorIdioms=IteratorIdioms|true
-detectorLazyInit=LazyInit|true
-detectorLoadOfKnownNullValue=LoadOfKnownNullValue|true
-detectorMethodReturnCheck=MethodReturnCheck|true
-detectorMultithreadedInstanceAccess=MultithreadedInstanceAccess|true
-detectorMutableLock=MutableLock|true
-detectorMutableStaticFields=MutableStaticFields|true
-detectorNaming=Naming|true
-detectorNumberConstructor=NumberConstructor|true
-detectorOverridingEqualsNotSymmetrical=OverridingEqualsNotSymmetrical|true
-detectorPreferZeroLengthArrays=PreferZeroLengthArrays|true
-detectorPublicSemaphores=PublicSemaphores|false
-detectorQuestionableBooleanAssignment=QuestionableBooleanAssignment|true
-detectorReadReturnShouldBeChecked=ReadReturnShouldBeChecked|true
-detectorRedundantInterfaces=RedundantInterfaces|true
-detectorRuntimeExceptionCapture=RuntimeExceptionCapture|true
-detectorSerializableIdiom=SerializableIdiom|true
-detectorStartInConstructor=StartInConstructor|true
-detectorStaticCalendarDetector=StaticCalendarDetector|true
-detectorStringConcatenation=StringConcatenation|true
-detectorSuperfluousInstanceOf=SuperfluousInstanceOf|true
-detectorSuspiciousThreadInterrupted=SuspiciousThreadInterrupted|true
-detectorSwitchFallthrough=SwitchFallthrough|true
-detectorSynchronizeAndNullCheckField=SynchronizeAndNullCheckField|true
-detectorSynchronizeOnClassLiteralNotGetClass=SynchronizeOnClassLiteralNotGetClass|true
-detectorSynchronizingOnContentsOfFieldToProtectField=SynchronizingOnContentsOfFieldToProtectField|true
-detectorURLProblems=URLProblems|true
-detectorUncallableMethodOfAnonymousClass=UncallableMethodOfAnonymousClass|true
-detectorUnnecessaryMath=UnnecessaryMath|true
-detectorUnreadFields=UnreadFields|true
-detectorUseObjectEquals=UseObjectEquals|false
-detectorUselessSubclassMethod=UselessSubclassMethod|false
-detectorVarArgsProblems=VarArgsProblems|true
-detectorVolatileUsage=VolatileUsage|true
-detectorWaitInLoop=WaitInLoop|true
-detectorWrongMapIterator=WrongMapIterator|true
-detectorXMLFactoryBypass=XMLFactoryBypass|true
-detector_threshold=2
-effort=default
-filter_settings=Medium|BAD_PRACTICE,CORRECTNESS,I18N,MALICIOUS_CODE,MT_CORRECTNESS,PERFORMANCE,SECURITY,STYLE|false
-filter_settings_neg=|
diff --git a/spring-batch-samples/.springBeans b/spring-batch-samples/.springBeans
deleted file mode 100644
index 291c24367..000000000
--- a/spring-batch-samples/.springBeans
+++ /dev/null
@@ -1,413 +0,0 @@
-
-
- 1
-
-
-
-
-
-
- src/main/resources/jobs/multilineJob.xml
- src/main/resources/jobs/multilineOrderJob.xml
- src/main/resources/jobs/tradeJob.xml
- src/main/resources/jobs/restartSample.xml
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/beanWrapperMapperSampleJob.xml
- src/main/resources/jobs/adhocLoopJob.xml
- src/main/resources/jobs/infiniteLoopJob.xml
- src/main/resources/jobs/footballJob.xml
- src/main/resources/jobs/delegatingJob.xml
- src/main/resources/jobs/parallelJob.xml
- src/main/resources/jobs/retrySample.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/adhoc-job-launcher-context.xml
- src/main/resources/quartz-job-launcher-context.xml
- src/main/resources/jobs/skipSampleJob.xml
- src/main/resources/jobs/multilineOrderInputTokenizers.xml
- src/main/resources/jobs/multilineOrderOutputAggregators.xml
- src/main/resources/jobs/compositeItemWriterSampleJob.xml
- src/main/resources/hibernate-context.xml
- src/main/resources/staging-test-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/jobs/headerFooterSample.xml
- src/main/resources/jobs/customerFilterJob.xml
- src/main/resources/skipSample-job-launcher-context.xml
- src/main/resources/jobs/ioSampleJob.xml
- src/main/resources/jobs/iosample/delimited.xml
- src/main/resources/jobs/iosample/fixedLength.xml
- src/main/resources/jobs/iosample/jdbcCursor.xml
- src/main/resources/jobs/iosample/multiLine.xml
- src/main/resources/jobs/iosample/multiRecordType.xml
- src/main/resources/jobs/iosample/multiResource.xml
- src/main/resources/jobs/iosample/xml.xml
- src/main/resources/jobs/iosample/hibernate.xml
- src/main/resources/jobs/hibernateJob.xml
- src/main/resources/jobs/iosample/jpa.xml
- src/main/resources/jobs/iosample/ibatis.xml
- src/test/resources/org/springframework/batch/sample/domain/trade/internal/JdbcCustomerDebitDaoTests-context.xml
- src/main/resources/jobs/loopFlowSample.xml
- src/test/resources/org/springframework/batch/sample/common/StagingItemReaderTests-context.xml
- src/test/resources/org/springframework/batch/sample/common/StagingItemWriterTests-context.xml
- src/main/resources/jobs/multilineOrderValidator.xml
- src/main/resources/jobs/restartFileSampleJob.xml
- src/main/resources/jobs/taskletJob.xml
- src/main/resources/org/springframework/batch/sample/football-job-context.xml
- src/main/resources/jobs/groovyJob.xml
- src/main/resources/jobs/iosample/jdbcPaging.xml
- src/main/resources/jobs/partitionJdbcJob.xml
- src/main/resources/jobs/jobStepSample.xml
- src/main/resources/jobs/partitionFileJob.xml
- src/test/resources/org/springframework/batch/sample/common/ColumnRangePartitionerTests-context.xml
- src/test/resources/job-runner-context.xml
- src/test/resources/org/springframework/batch/sample/JobStepFunctionalTests-context.xml
- src/main/resources/jobs/mailJob.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/jobs/beanWrapperMapperSampleJob.xml
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/delegatingJob.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/footballJob.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/jobs/infiniteLoopJob.xml
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/multilineJob.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/parallelJob.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/restartSample.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/jobs/retrySample.xml
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/tradeJob.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/quartz-job-launcher-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/jobs/compositeItemWriterSampleJob.xml
-
-
-
-
- true
- false
-
- src/main/resources/jobs/adhocLoopJob.xml
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/staging-test-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/simple-job-launcher-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/adhoc-job-launcher-context.xml
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/headerFooterSample.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/simple-job-launcher-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/jobs/customerFilterJob.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/data-source-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/hibernate-context.xml
- src/main/resources/jobs/hibernateJob.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/skipSampleJob.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/skipSample-job-launcher-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/ioSampleJob.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/hibernate-context.xml
- src/main/resources/jobs/iosample/hibernate.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/iosample/jdbcCursor.xml
- src/main/resources/jobs/ioSampleJob.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/simple-job-launcher-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/iosample/multiLine.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/simple-job-launcher-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/iosample/multiRecordType.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/simple-job-launcher-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/iosample/jpa.xml
- src/main/resources/jobs/ioSampleJob.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/simple-job-launcher-context.xml
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/jobs/iosample/ibatis.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/simple-job-launcher-context.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/multilineOrderJob.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
- src/main/resources/jobs/multilineOrderInputTokenizers.xml
- src/main/resources/jobs/multilineOrderOutputAggregators.xml
- src/main/resources/jobs/multilineOrderValidator.xml
-
-
-
-
- true
- false
-
- src/main/resources/data-source-context.xml
- src/main/resources/jobs/restartFileSampleJob.xml
- src/main/resources/simple-job-launcher-context.xml
- src/main/resources/org/springframework/batch/sample/config/common-context.xml
-
-
-
-
diff --git a/spring-batch-samples/hsql-manager.launch b/spring-batch-samples/hsql-manager.launch
deleted file mode 100644
index 339e9b47b..000000000
--- a/spring-batch-samples/hsql-manager.launch
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/spring-batch-samples/hsql-server.launch b/spring-batch-samples/hsql-server.launch
deleted file mode 100644
index 3b569d6d3..000000000
--- a/spring-batch-samples/hsql-server.launch
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/spring-batch-samples/jalopy_customized.xml b/spring-batch-samples/jalopy_customized.xml
deleted file mode 100644
index 459f95a14..000000000
--- a/spring-batch-samples/jalopy_customized.xml
+++ /dev/null
@@ -1,436 +0,0 @@
-
-
-
-
- 14
-
-
-
-
- true
-
-
- [A-Z][a-zA-Z0-9]+
- [A-Z][a-zA-Z0-9]+
-
-
- [a-z][\w]+
- [a-z][\w]+
- [a-zA-Z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-zA-Z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-zA-Z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-zA-Z][\w]+
-
- [A-Z][a-zA-Z0-9]+
- \w+
-
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
- [a-z][\w]+
-
- [a-z]+(?:\.[a-z]+)*
-
- [a-z][\w]+
- [a-z][\w]+
-
- [a-z][\w]*
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
- 6
-
-
-
- 30000
- 30000
- 30000
- 30000
- 30000
- 30000
-
- true
-
-
- 1
-
-
-
- true
- false
- true
- false
- false
- false
-
-
- bak
- 0
-
-
-
- 1
- 0
- 1
- 0
-
-
- 1
- 2
- 1
- 1
-
-
- 1
- 0
- 1
-
- 1
- 1
- 1
-
- 1
- 1
-
-
-
- 1
-
-
- false
-
-
-
- false
- false
-
-
- false
- false
- true
- false
-
-
- true
- false
- false
- false
- false
-
-
- false
- false
-
-
-
- true
- true
-
-
-
- true
-
-
-
- false
- true
- true
-
- true
-
- 0
- 0
- 0
- 0
-
- false
- true
-
- false
-
-
-
- @task
-
-
- /**| * DOCUMENT ME!| *| * @author $author$| * @version $Revision: 1.9 $| */
-
- */
- * @throws $exceptionType$ DOCUMENT ME!
- * @param $paramType$ DOCUMENT ME!
- /**| * Creates a new $objectType$ object.
-
- /**| * DOCUMENT ME!| *| * @author $author$| * @version $Revision: 1.9 $| */
-
- */
- * @throws $exceptionType$ DOCUMENT ME!
- * @param $paramType$ DOCUMENT ME!
- * @return DOCUMENT ME!
- /**| * DOCUMENT ME!
-
- /** DOCUMENT ME! */
-
-
-
- false
- false
- false
-
-
- -
- false
- false
-
- Annotations
- Inner Classes
- Constructors
- Enumerations
- Instance fields
- Instance initializers
- Inner Interfaces
- Methods
- Static fields/initializers
-
-
-
-
-
-
- true
- Geotools2 - OpenSource mapping toolkit
- 0
- /*| * GeoTools - OpenSource mapping toolkit| * http://geotools.org| * (C) 2002-2006, GeoTools Project Managment Committee (PMC)| *| * This library is free software; you can redistribute it and/or| * modify it under the terms of the GNU Lesser General Public| * License as published by the Free Software Foundation;| * version 2.1 of the License.| *| * This library is distributed in the hope that it will be useful,| * but WITHOUT ANY WARRANTY; without even the implied warranty of| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU| * Lesser General Public License for more details.| */
-
-
-
- disabled
-
-
-
- 0
- *:0|java:1|javax:1|org.springframework:3|com.accenture:2
-
- disabled
- true
-
-
- false
-
- true
- false
-
- true
-
-
- false
-
-
- 1
- 1
- 0
- 1
- 4
- 55
- -1
- 4
- -1
- 0
- 8
- -1
- 1
-
-
- false
- false
-
-
-
- false
- false
- false
- true
- false
- true
- false
-
- false
-
-
-
-
- false
- false
- false
- true
- false
- false
-
- false
-
- static|field|initializer|constructor|method|interface|class|annotation|enum
- false
-
-
- false
- public=true|protected=true|private=true|abstract=true|static=true|final=true|synchronized=true|transient=true|volatile=true|native=true|strictfp=true
-
-
-
-
- true
- true
- true
-
-
- true
- false
- false
- false
-
- false
-
-
- false
- false
- true
-
-
-
- true
- false
-
- true
- true
- true
- true
- true
- true
-
- false
- false
-
-
-
-
-
- 0
- false
- false
- false
-
- false
-
- false
- false
-
- false
-
-
- false
- false
- false
- false
-
-
- false
- false
- false
-
-
-
-
- 2147483647
-
-
- true
-
-
-
-
- 2147483647
-
-
- true
-
-
-
-
- 2147483647
-
-
- true
-
-
-
- true
- true
- 100
-
-
-
- false
- false
- false
-
- false
- false
- false
-
-
-
- false
-
-
- false
-
- false
-
- false
-
-
-
-
-
diff --git a/spring-batch-samples/jmxLauncher.launch b/spring-batch-samples/jmxLauncher.launch
deleted file mode 100644
index ef309a72e..000000000
--- a/spring-batch-samples/jmxLauncher.launch
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/spring-batch-samples/jobLauncher.launch b/spring-batch-samples/jobLauncher.launch
deleted file mode 100644
index 5c39d9e9a..000000000
--- a/spring-batch-samples/jobLauncher.launch
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/spring-batch-samples/maven_checks_customized.xml b/spring-batch-samples/maven_checks_customized.xml
deleted file mode 100644
index 654b243d3..000000000
--- a/spring-batch-samples/maven_checks_customized.xml
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/spring-batch-samples/pom.xml b/spring-batch-samples/pom.xml
index 2f5ed9b78..73f4ea543 100644
--- a/spring-batch-samples/pom.xml
+++ b/spring-batch-samples/pom.xml
@@ -383,15 +383,7 @@
-
+
gemstone
Release bundles for SQLFire and GemFire
http://dist.gemstone.com.s3.amazonaws.com/maven/release
diff --git a/spring-batch-samples/server.properties b/spring-batch-samples/server.properties
deleted file mode 100644
index f40f3db45..000000000
--- a/spring-batch-samples/server.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-server.port=9005
-server.trace=true
-
-server.database.0=file:target/hsqldb-data/samples
-server.dbname.0=samples
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/ColumnRangePartitioner.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/ColumnRangePartitioner.java
index dd9c11e6e..595174f2f 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/ColumnRangePartitioner.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/ColumnRangePartitioner.java
@@ -62,9 +62,9 @@ public class ColumnRangePartitioner implements Partitioner {
* @see Partitioner#partition(int)
*/
public Map partition(int gridSize) {
+ int min = jdbcTemplate.queryForObject("SELECT MIN(" + column + ") from " + table, Integer.class);
+ int max = jdbcTemplate.queryForObject("SELECT MAX(" + column + ") from " + table, Integer.class);
- int min = jdbcTemplate.queryForInt("SELECT MIN(" + column + ") from " + table);
- int max = jdbcTemplate.queryForInt("SELECT MAX(" + column + ") from " + table);
int targetSize = (max - min) / gridSize + 1;
Map result = new HashMap();
@@ -73,7 +73,6 @@ public class ColumnRangePartitioner implements Partitioner {
int end = start + targetSize - 1;
while (start <= max) {
-
ExecutionContext value = new ExecutionContext();
result.put("partition" + number, value);
@@ -88,7 +87,5 @@ public class ColumnRangePartitioner implements Partitioner {
}
return result;
-
}
-
}
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/FieldSetResultSetExtractor.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/FieldSetResultSetExtractor.java
deleted file mode 100644
index cf20d19ba..000000000
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/FieldSetResultSetExtractor.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright 2006-2007 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.springframework.batch.sample.common;
-
-import java.sql.ResultSet;
-import java.sql.ResultSetMetaData;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.springframework.batch.item.file.transform.DefaultFieldSet;
-import org.springframework.batch.item.file.transform.FieldSet;
-
-/**
- * ResultSetExtractor implementation that returns list of FieldSets
- * for given ResultSet.
- *
- * @author peter.zozom
- *
- */
-public final class FieldSetResultSetExtractor {
-
- // utility class not meant for instantiation
- private FieldSetResultSetExtractor(){}
-
- /**
- * Processes single row in ResultSet and returns its FieldSet representation.
- * @param rs ResultSet ResultSet to extract data from.
- * @return FieldSet representation of current row in ResultSet
- * @throws SQLException thrown during processing
- */
- public static FieldSet getFieldSet(ResultSet rs) throws SQLException {
- ResultSetMetaData metaData = rs.getMetaData();
- int columnCount = metaData.getColumnCount();
-
- FieldSet fs;
-
- List tokens = new ArrayList();
- List names = new ArrayList();
-
- for (int i = 1; i <= columnCount; i++) {
- tokens.add(rs.getString(i));
- names.add(metaData.getColumnName(i));
- }
-
- fs = new DefaultFieldSet(tokens.toArray(new String[0]), names.toArray(new String[0]));
-
- return fs;
- }
-
-}
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/InfiniteLoopReader.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/InfiniteLoopReader.java
index ff0a71ac1..552d57b15 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/InfiniteLoopReader.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/common/InfiniteLoopReader.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,8 +17,6 @@
package org.springframework.batch.sample.common;
import org.springframework.batch.item.ItemReader;
-import org.springframework.batch.item.ParseException;
-import org.springframework.batch.item.UnexpectedInputException;
/**
* ItemReader implementation that will continually return a new object. It's
@@ -28,9 +26,7 @@ import org.springframework.batch.item.UnexpectedInputException;
*
*/
public class InfiniteLoopReader implements ItemReader
*/
-public class AmqpMessageProducer {
- public static final int SEND_MESSAGE_COUNT = 10;
- public static final String[] BEAN_CONFIG = { "classpath:/META-INF/spring/jobs/messaging/rabbitmq-beans.xml",
+public final class AmqpMessageProducer {
+ private AmqpMessageProducer() {}
+
+ private static final int SEND_MESSAGE_COUNT = 10;
+ private static final String[] BEAN_CONFIG = { "classpath:/META-INF/spring/jobs/messaging/rabbitmq-beans.xml",
"classpath:/META-INF/spring/config-beans.xml" };
public static void main(String[] args) {
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/support/HeaderCopyCallback.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/support/HeaderCopyCallback.java
index f3025235e..2826ee06c 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/support/HeaderCopyCallback.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/support/HeaderCopyCallback.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,18 +20,15 @@ import java.io.IOException;
import java.io.Writer;
import org.springframework.batch.item.file.FlatFileHeaderCallback;
-import org.springframework.batch.item.file.FlatFileItemReader;
-import org.springframework.batch.item.file.FlatFileItemWriter;
import org.springframework.batch.item.file.LineCallbackHandler;
import org.springframework.util.Assert;
/**
- * Designed to be registered with both {@link FlatFileItemReader} and
- * {@link FlatFileItemWriter} and copy header line from input file to output
- * file.
+ * Designed to be registered with both {@link org.springframework.batch.item.file.FlatFileItemReader}
+ * and {@link org.springframework.batch.item.file.FlatFileItemWriter} and copy header line from input
+ * file to output file.
*/
public class HeaderCopyCallback implements LineCallbackHandler, FlatFileHeaderCallback {
-
private String header = "";
public void handleLine(String line) {
@@ -41,7 +38,5 @@ public class HeaderCopyCallback implements LineCallbackHandler, FlatFileHeaderCa
public void writeHeader(Writer writer) throws IOException {
writer.write("header from input: " + header);
-
}
-
}
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/support/RetrySampleItemWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/support/RetrySampleItemWriter.java
index 4920caf00..9be637b70 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/support/RetrySampleItemWriter.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/support/RetrySampleItemWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ public class RetrySampleItemWriter implements ItemWriter {
int current = counter;
counter += items.size();
if (current < 3 && (counter >= 2 || counter >= 3)) {
- throw new RuntimeException("Temporary error");
+ throw new IllegalStateException("Temporary error");
}
}
diff --git a/spring-batch-samples/src/main/resources/META-INF/persistence.xml b/spring-batch-samples/src/main/resources/META-INF/persistence.xml
index bc3353f67..50cfb848f 100644
--- a/spring-batch-samples/src/main/resources/META-INF/persistence.xml
+++ b/spring-batch-samples/src/main/resources/META-INF/persistence.xml
@@ -4,10 +4,7 @@
version="1.0">
-
org.springframework.batch.sample.domain.trade.CustomerCredit
true
-
-
-
\ No newline at end of file
+
diff --git a/spring-batch-samples/src/main/resources/META-INF/spring/config-beans.xml b/spring-batch-samples/src/main/resources/META-INF/spring/config-beans.xml
index f5dc575de..3ddbc29ce 100644
--- a/spring-batch-samples/src/main/resources/META-INF/spring/config-beans.xml
+++ b/spring-batch-samples/src/main/resources/META-INF/spring/config-beans.xml
@@ -5,9 +5,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
-
diff --git a/spring-batch-samples/src/main/resources/META-INF/spring/jobs/amqp/amqp-example-job-beans.xml b/spring-batch-samples/src/main/resources/META-INF/spring/jobs/amqp/amqp-example-job-beans.xml
index 8d77e3866..c673593b4 100644
--- a/spring-batch-samples/src/main/resources/META-INF/spring/jobs/amqp/amqp-example-job-beans.xml
+++ b/spring-batch-samples/src/main/resources/META-INF/spring/jobs/amqp/amqp-example-job-beans.xml
@@ -4,7 +4,7 @@
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
diff --git a/spring-batch-samples/src/main/resources/META-INF/spring/jobs/amqp/amqp-example-job.xml b/spring-batch-samples/src/main/resources/META-INF/spring/jobs/amqp/amqp-example-job.xml
index 0f92248cb..9d52bdf8b 100644
--- a/spring-batch-samples/src/main/resources/META-INF/spring/jobs/amqp/amqp-example-job.xml
+++ b/spring-batch-samples/src/main/resources/META-INF/spring/jobs/amqp/amqp-example-job.xml
@@ -5,8 +5,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:batch="http://www.springframework.org/schema/batch"
xsi:schemaLocation="
- http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.2.xsd
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
diff --git a/spring-batch-samples/src/main/resources/META-INF/spring/jobs/messaging/rabbitmq-beans.xml b/spring-batch-samples/src/main/resources/META-INF/spring/jobs/messaging/rabbitmq-beans.xml
index 4bca5f143..946a0ffd8 100644
--- a/spring-batch-samples/src/main/resources/META-INF/spring/jobs/messaging/rabbitmq-beans.xml
+++ b/spring-batch-samples/src/main/resources/META-INF/spring/jobs/messaging/rabbitmq-beans.xml
@@ -6,8 +6,8 @@
xmlns:rabbit="http://www.springframework.org/schema/rabbit"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="
- http://www.springframework.org/schema/rabbit http://www.springframework.org/schema/rabbit/spring-rabbit-1.0.xsd
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
+ http://www.springframework.org/schema/rabbit http://www.springframework.org/schema/rabbit/spring-rabbit.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
diff --git a/spring-batch-samples/src/main/resources/adhoc-job-launcher-context.xml b/spring-batch-samples/src/main/resources/adhoc-job-launcher-context.xml
index f7a680309..b187f79e4 100644
--- a/spring-batch-samples/src/main/resources/adhoc-job-launcher-context.xml
+++ b/spring-batch-samples/src/main/resources/adhoc-job-launcher-context.xml
@@ -1,10 +1,7 @@
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -57,5 +54,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/data-source-context.xml b/spring-batch-samples/src/main/resources/data-source-context.xml
index 9c34cc82c..6cbfc6061 100644
--- a/spring-batch-samples/src/main/resources/data-source-context.xml
+++ b/spring-batch-samples/src/main/resources/data-source-context.xml
@@ -1,8 +1,8 @@
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd">
diff --git a/spring-batch-samples/src/main/resources/hibernate-context.xml b/spring-batch-samples/src/main/resources/hibernate-context.xml
index 845c8be5c..873bd3fb4 100644
--- a/spring-batch-samples/src/main/resources/hibernate-context.xml
+++ b/spring-batch-samples/src/main/resources/hibernate-context.xml
@@ -1,8 +1,8 @@
-
-
-
+
+
+
@@ -19,5 +19,4 @@
-
-
+
diff --git a/spring-batch-samples/src/main/resources/ibatis-config.xml b/spring-batch-samples/src/main/resources/ibatis-config.xml
index 9d2f4e8c3..d038e54c5 100644
--- a/spring-batch-samples/src/main/resources/ibatis-config.xml
+++ b/spring-batch-samples/src/main/resources/ibatis-config.xml
@@ -3,7 +3,5 @@
"http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
-
-
-
\ No newline at end of file
+
diff --git a/spring-batch-samples/src/main/resources/ibatis-customer-credit.xml b/spring-batch-samples/src/main/resources/ibatis-customer-credit.xml
index cd23cf0a7..eabd330a9 100644
--- a/spring-batch-samples/src/main/resources/ibatis-customer-credit.xml
+++ b/spring-batch-samples/src/main/resources/ibatis-customer-credit.xml
@@ -3,7 +3,6 @@
"http://ibatis.apache.org/dtd/sql-map-2.dtd">
-
@@ -24,5 +23,4 @@
update CUSTOMER set CREDIT = #credit# where NAME = #name#
-
-
\ No newline at end of file
+
diff --git a/spring-batch-samples/src/main/resources/jobs/adhocLoopJob.xml b/spring-batch-samples/src/main/resources/jobs/adhocLoopJob.xml
index 8c341129a..4df1fbfdf 100644
--- a/spring-batch-samples/src/main/resources/jobs/adhocLoopJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/adhocLoopJob.xml
@@ -6,7 +6,7 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/batch
- http://www.springframework.org/schema/batch/spring-batch-2.2.xsd
+ http://www.springframework.org/schema/batch/spring-batch.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
@@ -40,5 +40,4 @@
method="onError" />
-
diff --git a/spring-batch-samples/src/main/resources/jobs/amqp-example-job.xml b/spring-batch-samples/src/main/resources/jobs/amqp-example-job.xml
index 0f92248cb..9d52bdf8b 100644
--- a/spring-batch-samples/src/main/resources/jobs/amqp-example-job.xml
+++ b/spring-batch-samples/src/main/resources/jobs/amqp-example-job.xml
@@ -5,8 +5,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:batch="http://www.springframework.org/schema/batch"
xsi:schemaLocation="
- http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.2.xsd
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
diff --git a/spring-batch-samples/src/main/resources/jobs/beanWrapperMapperSampleJob.xml b/spring-batch-samples/src/main/resources/jobs/beanWrapperMapperSampleJob.xml
index 4e437f426..ba12a5bcb 100644
--- a/spring-batch-samples/src/main/resources/jobs/beanWrapperMapperSampleJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/beanWrapperMapperSampleJob.xml
@@ -1,12 +1,9 @@
-
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
@@ -94,5 +91,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/compositeItemWriterSampleJob.xml b/spring-batch-samples/src/main/resources/jobs/compositeItemWriterSampleJob.xml
index 71e934f02..021296173 100644
--- a/spring-batch-samples/src/main/resources/jobs/compositeItemWriterSampleJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/compositeItemWriterSampleJob.xml
@@ -1,12 +1,9 @@
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
-
diff --git a/spring-batch-samples/src/main/resources/jobs/customerFilterJob.xml b/spring-batch-samples/src/main/resources/jobs/customerFilterJob.xml
index ac57161f4..e5d71d40c 100644
--- a/spring-batch-samples/src/main/resources/jobs/customerFilterJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/customerFilterJob.xml
@@ -1,9 +1,8 @@
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
@@ -72,5 +71,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/delegatingJob.xml b/spring-batch-samples/src/main/resources/jobs/delegatingJob.xml
index 3236ebf9f..7ee3bb150 100644
--- a/spring-batch-samples/src/main/resources/jobs/delegatingJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/delegatingJob.xml
@@ -1,14 +1,9 @@
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
The intent is to to give an example of how existing bean
@@ -41,5 +36,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/footballJob.xml b/spring-batch-samples/src/main/resources/jobs/footballJob.xml
index 0e85cdb20..5e3395014 100644
--- a/spring-batch-samples/src/main/resources/jobs/footballJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/footballJob.xml
@@ -1,10 +1,9 @@
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/groovyJob.xml b/spring-batch-samples/src/main/resources/jobs/groovyJob.xml
index 922e25fdf..0118572ce 100644
--- a/spring-batch-samples/src/main/resources/jobs/groovyJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/groovyJob.xml
@@ -1,9 +1,9 @@
@@ -53,5 +53,4 @@
}
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/headerFooterSample.xml b/spring-batch-samples/src/main/resources/jobs/headerFooterSample.xml
index 917f5ed3d..936f036b3 100644
--- a/spring-batch-samples/src/main/resources/jobs/headerFooterSample.xml
+++ b/spring-batch-samples/src/main/resources/jobs/headerFooterSample.xml
@@ -1,12 +1,9 @@
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
Showcases reading and writing of headers and footers. Copies header from input to output and adds a footer.
diff --git a/spring-batch-samples/src/main/resources/jobs/hibernateJob.xml b/spring-batch-samples/src/main/resources/jobs/hibernateJob.xml
index 47292f82a..072af78f9 100644
--- a/spring-batch-samples/src/main/resources/jobs/hibernateJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/hibernateJob.xml
@@ -1,9 +1,9 @@
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
Example for Hibernate integration.
@@ -42,5 +42,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/infiniteLoopJob.xml b/spring-batch-samples/src/main/resources/jobs/infiniteLoopJob.xml
index 560935156..79459c6c2 100644
--- a/spring-batch-samples/src/main/resources/jobs/infiniteLoopJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/infiniteLoopJob.xml
@@ -1,10 +1,7 @@
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -37,11 +34,6 @@
-
@@ -54,5 +46,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/ioSampleJob.xml b/spring-batch-samples/src/main/resources/jobs/ioSampleJob.xml
index 31050e0e2..de51a2541 100644
--- a/spring-batch-samples/src/main/resources/jobs/ioSampleJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/ioSampleJob.xml
@@ -1,7 +1,7 @@
@@ -13,7 +13,5 @@
-
-
+
diff --git a/spring-batch-samples/src/main/resources/jobs/iosample/delimited.xml b/spring-batch-samples/src/main/resources/jobs/iosample/delimited.xml
index 3027fec6b..30e823f40 100644
--- a/spring-batch-samples/src/main/resources/jobs/iosample/delimited.xml
+++ b/spring-batch-samples/src/main/resources/jobs/iosample/delimited.xml
@@ -1,15 +1,8 @@
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
diff --git a/spring-batch-samples/src/main/resources/jobs/iosample/fixedLength.xml b/spring-batch-samples/src/main/resources/jobs/iosample/fixedLength.xml
index 9253f7e70..2085bb625 100644
--- a/spring-batch-samples/src/main/resources/jobs/iosample/fixedLength.xml
+++ b/spring-batch-samples/src/main/resources/jobs/iosample/fixedLength.xml
@@ -1,13 +1,8 @@
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
diff --git a/spring-batch-samples/src/main/resources/jobs/iosample/ibatis.xml b/spring-batch-samples/src/main/resources/jobs/iosample/ibatis.xml
index 469b94769..5f1f51f39 100644
--- a/spring-batch-samples/src/main/resources/jobs/iosample/ibatis.xml
+++ b/spring-batch-samples/src/main/resources/jobs/iosample/ibatis.xml
@@ -3,7 +3,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
-
@@ -21,5 +20,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/iosample/jdbcCursor.xml b/spring-batch-samples/src/main/resources/jobs/iosample/jdbcCursor.xml
index d0e0b69a5..d9b3e36a4 100644
--- a/spring-batch-samples/src/main/resources/jobs/iosample/jdbcCursor.xml
+++ b/spring-batch-samples/src/main/resources/jobs/iosample/jdbcCursor.xml
@@ -1,15 +1,8 @@
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -28,5 +21,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/iosample/jdbcPaging.xml b/spring-batch-samples/src/main/resources/jobs/iosample/jdbcPaging.xml
index 74f080fb9..63e32dbb2 100644
--- a/spring-batch-samples/src/main/resources/jobs/iosample/jdbcPaging.xml
+++ b/spring-batch-samples/src/main/resources/jobs/iosample/jdbcPaging.xml
@@ -1,12 +1,8 @@
-
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -45,5 +41,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/iosample/multiLine.xml b/spring-batch-samples/src/main/resources/jobs/iosample/multiLine.xml
index 3e22bed2f..ed253903f 100644
--- a/spring-batch-samples/src/main/resources/jobs/iosample/multiLine.xml
+++ b/spring-batch-samples/src/main/resources/jobs/iosample/multiLine.xml
@@ -1,17 +1,10 @@
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
@@ -49,5 +42,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/iosample/multiRecordType.xml b/spring-batch-samples/src/main/resources/jobs/iosample/multiRecordType.xml
index 25906509f..aeeac0f30 100644
--- a/spring-batch-samples/src/main/resources/jobs/iosample/multiRecordType.xml
+++ b/spring-batch-samples/src/main/resources/jobs/iosample/multiRecordType.xml
@@ -1,17 +1,10 @@
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
@@ -34,12 +27,12 @@
-
-
-
+
+
+
+ class="org.springframework.batch.sample.domain.trade.internal.TradeFieldSetMapper" />
diff --git a/spring-batch-samples/src/main/resources/jobs/iosample/multiResource.xml b/spring-batch-samples/src/main/resources/jobs/iosample/multiResource.xml
index 050c3265f..558220494 100644
--- a/spring-batch-samples/src/main/resources/jobs/iosample/multiResource.xml
+++ b/spring-batch-samples/src/main/resources/jobs/iosample/multiResource.xml
@@ -1,13 +1,8 @@
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -59,5 +54,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/iosample/xml.xml b/spring-batch-samples/src/main/resources/jobs/iosample/xml.xml
index caac90308..57046f47a 100644
--- a/spring-batch-samples/src/main/resources/jobs/iosample/xml.xml
+++ b/spring-batch-samples/src/main/resources/jobs/iosample/xml.xml
@@ -1,12 +1,9 @@
@@ -36,5 +33,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/jobStepSample.xml b/spring-batch-samples/src/main/resources/jobs/jobStepSample.xml
index 5bc712995..e5ce2c32b 100644
--- a/spring-batch-samples/src/main/resources/jobs/jobStepSample.xml
+++ b/spring-batch-samples/src/main/resources/jobs/jobStepSample.xml
@@ -1,6 +1,6 @@
diff --git a/spring-batch-samples/src/main/resources/jobs/loopFlowSample.xml b/spring-batch-samples/src/main/resources/jobs/loopFlowSample.xml
index e77079f51..6d5bb4d83 100644
--- a/spring-batch-samples/src/main/resources/jobs/loopFlowSample.xml
+++ b/spring-batch-samples/src/main/resources/jobs/loopFlowSample.xml
@@ -1,7 +1,7 @@
@@ -40,5 +40,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/mailJob.xml b/spring-batch-samples/src/main/resources/jobs/mailJob.xml
index bf813e328..e4fc07fec 100644
--- a/spring-batch-samples/src/main/resources/jobs/mailJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/mailJob.xml
@@ -1,9 +1,8 @@
-
+
@@ -12,9 +11,6 @@
-
@@ -48,5 +44,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/multilineJob.xml b/spring-batch-samples/src/main/resources/jobs/multilineJob.xml
index fb80f375f..60bb1a0f1 100644
--- a/spring-batch-samples/src/main/resources/jobs/multilineJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/multilineJob.xml
@@ -1,7 +1,7 @@
@@ -75,5 +75,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/multilineOrderInputTokenizers.xml b/spring-batch-samples/src/main/resources/jobs/multilineOrderInputTokenizers.xml
index 02b773655..5c03b5444 100644
--- a/spring-batch-samples/src/main/resources/jobs/multilineOrderInputTokenizers.xml
+++ b/spring-batch-samples/src/main/resources/jobs/multilineOrderInputTokenizers.xml
@@ -61,5 +61,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/multilineOrderJob.xml b/spring-batch-samples/src/main/resources/jobs/multilineOrderJob.xml
index 08cdbd7eb..3b8f7871c 100644
--- a/spring-batch-samples/src/main/resources/jobs/multilineOrderJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/multilineOrderJob.xml
@@ -1,12 +1,10 @@
+ http://www.springframework.org/schema/batch/spring-batch.xsd">
@@ -67,5 +65,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/multilineOrderOutputAggregators.xml b/spring-batch-samples/src/main/resources/jobs/multilineOrderOutputAggregators.xml
index 93c5ebe71..83c21757c 100644
--- a/spring-batch-samples/src/main/resources/jobs/multilineOrderOutputAggregators.xml
+++ b/spring-batch-samples/src/main/resources/jobs/multilineOrderOutputAggregators.xml
@@ -1,6 +1,6 @@
@@ -57,5 +57,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/parallelJob.xml b/spring-batch-samples/src/main/resources/jobs/parallelJob.xml
index 05449790f..901875ba1 100644
--- a/spring-batch-samples/src/main/resources/jobs/parallelJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/parallelJob.xml
@@ -3,7 +3,7 @@
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
- http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.2.xsd
+ http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -107,5 +107,4 @@
method="doStronglyTypedLogging" />
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/partitionFileJob.xml b/spring-batch-samples/src/main/resources/jobs/partitionFileJob.xml
index 3dba31804..5c6206258 100644
--- a/spring-batch-samples/src/main/resources/jobs/partitionFileJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/partitionFileJob.xml
@@ -1,8 +1,7 @@
-
@@ -82,5 +81,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/partitionJdbcJob.xml b/spring-batch-samples/src/main/resources/jobs/partitionJdbcJob.xml
index 09949e95b..a4e2b2839 100644
--- a/spring-batch-samples/src/main/resources/jobs/partitionJdbcJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/partitionJdbcJob.xml
@@ -1,9 +1,8 @@
-
+ xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -113,5 +112,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/restartFileSampleJob.xml b/spring-batch-samples/src/main/resources/jobs/restartFileSampleJob.xml
index 9a50f37db..7173ef653 100644
--- a/spring-batch-samples/src/main/resources/jobs/restartFileSampleJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/restartFileSampleJob.xml
@@ -1,7 +1,7 @@
@@ -63,5 +63,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/restartSample.xml b/spring-batch-samples/src/main/resources/jobs/restartSample.xml
index 8233a20c2..82ef5d921 100644
--- a/spring-batch-samples/src/main/resources/jobs/restartSample.xml
+++ b/spring-batch-samples/src/main/resources/jobs/restartSample.xml
@@ -1,7 +1,7 @@
@@ -16,8 +16,6 @@
-
-
@@ -63,5 +61,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/retrySample.xml b/spring-batch-samples/src/main/resources/jobs/retrySample.xml
index 6d4fa47c7..538af8e7d 100644
--- a/spring-batch-samples/src/main/resources/jobs/retrySample.xml
+++ b/spring-batch-samples/src/main/resources/jobs/retrySample.xml
@@ -1,7 +1,7 @@
@@ -24,5 +24,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/jobs/skipSampleJob.xml b/spring-batch-samples/src/main/resources/jobs/skipSampleJob.xml
index 14e4dee71..3b1e4b70d 100644
--- a/spring-batch-samples/src/main/resources/jobs/skipSampleJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/skipSampleJob.xml
@@ -1,7 +1,7 @@
@@ -133,5 +133,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/jobs/taskletJob.xml b/spring-batch-samples/src/main/resources/jobs/taskletJob.xml
index 68cb7aa5b..9cb21f6be 100644
--- a/spring-batch-samples/src/main/resources/jobs/taskletJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/taskletJob.xml
@@ -1,7 +1,7 @@
@@ -34,5 +34,4 @@
scope="step">
-
diff --git a/spring-batch-samples/src/main/resources/jobs/tradeJob.xml b/spring-batch-samples/src/main/resources/jobs/tradeJob.xml
index 0ce3d7635..841c7e2db 100644
--- a/spring-batch-samples/src/main/resources/jobs/tradeJob.xml
+++ b/spring-batch-samples/src/main/resources/jobs/tradeJob.xml
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:batch="http://www.springframework.org/schema/batch"
- xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.2.xsd
+ xsi:schemaLocation="http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -109,5 +109,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/org/springframework/batch/sample/config/common-context.xml b/spring-batch-samples/src/main/resources/org/springframework/batch/sample/config/common-context.xml
index b6d093d45..b72a5bb50 100644
--- a/spring-batch-samples/src/main/resources/org/springframework/batch/sample/config/common-context.xml
+++ b/spring-batch-samples/src/main/resources/org/springframework/batch/sample/config/common-context.xml
@@ -1,11 +1,7 @@
-
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -14,5 +10,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/org/springframework/batch/sample/football-job-context.xml b/spring-batch-samples/src/main/resources/org/springframework/batch/sample/football-job-context.xml
index bb710eac3..e1295fc3f 100644
--- a/spring-batch-samples/src/main/resources/org/springframework/batch/sample/football-job-context.xml
+++ b/spring-batch-samples/src/main/resources/org/springframework/batch/sample/football-job-context.xml
@@ -1,11 +1,9 @@
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
-
diff --git a/spring-batch-samples/src/main/resources/quartz-job-launcher-context.xml b/spring-batch-samples/src/main/resources/quartz-job-launcher-context.xml
deleted file mode 100644
index be921bc83..000000000
--- a/spring-batch-samples/src/main/resources/quartz-job-launcher-context.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/spring-batch-samples/src/main/resources/simple-job-launcher-context.xml b/spring-batch-samples/src/main/resources/simple-job-launcher-context.xml
index f65a418cd..be43000e4 100644
--- a/spring-batch-samples/src/main/resources/simple-job-launcher-context.xml
+++ b/spring-batch-samples/src/main/resources/simple-job-launcher-context.xml
@@ -1,11 +1,8 @@
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -47,5 +44,4 @@
-
diff --git a/spring-batch-samples/src/main/resources/skipSample-job-launcher-context.xml b/spring-batch-samples/src/main/resources/skipSample-job-launcher-context.xml
index bcf62cae5..d059b794e 100644
--- a/spring-batch-samples/src/main/resources/skipSample-job-launcher-context.xml
+++ b/spring-batch-samples/src/main/resources/skipSample-job-launcher-context.xml
@@ -1,9 +1,8 @@
-
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -45,6 +44,4 @@
-
-
diff --git a/spring-batch-samples/src/main/resources/staging-test-context.xml b/spring-batch-samples/src/main/resources/staging-test-context.xml
index 0c0dc8714..6526914a3 100644
--- a/spring-batch-samples/src/main/resources/staging-test-context.xml
+++ b/spring-batch-samples/src/main/resources/staging-test-context.xml
@@ -1,8 +1,6 @@
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -18,5 +16,4 @@
-
\ No newline at end of file
diff --git a/spring-batch-samples/src/main/resources/xstream-config.xml b/spring-batch-samples/src/main/resources/xstream-config.xml
deleted file mode 100644
index a61f8a2a8..000000000
--- a/spring-batch-samples/src/main/resources/xstream-config.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
- 1003
- purchaseOrders
-
-
- xmlns
- http://adsj.accenture.com/purchaseorders
-
-
- xmlns:xsi
- http://www.w3.org/2001/XMLSchema-instance
-
-
- xsi:schemaLocation
- http://adsj.accenture.com/purchaseorders purchaseorders.xsd
-
-
-
-
-
-
-
-
- org.springframework.batch.sample.domain.order.internal.xml.Customer
- org.springframework.batch.sample.domain.order.internal.xml.Order
- customer
-
-
- org.springframework.batch.sample.domain.order.internal.xml.Shipper
- org.springframework.batch.sample.domain.order.internal.xml.Order
- shipper
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- http://adsj.accenture.com/purchaseorders
- order
-
- org.springframework.batch.sample.domain.order.internal.xml.Order
-
-
- http://adsj.accenture.com/purchaseorders
- customer
-
- org.springframework.batch.sample.domain.order.internal.xml.Customer
-
-
- http://adsj.accenture.com/purchaseorders
- shipper
-
- org.springframework.batch.sample.domain.order.internal.xml.Shipper
-
-
- http://adsj.accenture.com/purchaseorders
- lineItem
-
- org.springframework.batch.sample.domain.order.internal.xml.LineItem
-
-
-
diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/CompositeItemWriterSampleFunctionalTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/CompositeItemWriterSampleFunctionalTests.java
index 37f42a5c7..62de3bb52 100644
--- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/CompositeItemWriterSampleFunctionalTests.java
+++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/CompositeItemWriterSampleFunctionalTests.java
@@ -27,9 +27,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "/simple-job-launcher-context.xml", "/jobs/compositeItemWriterSampleJob.xml", "/job-runner-context.xml" })
public class CompositeItemWriterSampleFunctionalTests {
-
private static final String GET_TRADES = "SELECT isin, quantity, price, customer FROM TRADE order by isin";
-
private static final String EXPECTED_OUTPUT_FILE = "Trade: [isin=UK21341EAH41,quantity=211,price=31.11,customer=customer1]"
+ "Trade: [isin=UK21341EAH42,quantity=212,price=32.11,customer=customer2]"
+ "Trade: [isin=UK21341EAH43,quantity=213,price=33.11,customer=customer3]"
@@ -48,16 +46,14 @@ public class CompositeItemWriterSampleFunctionalTests {
@Test
public void testJobLaunch() throws Exception {
-
jdbcTemplate.update("DELETE from TRADE");
- int before = jdbcTemplate.queryForInt("SELECT COUNT(*) from TRADE");
+ int before = jdbcTemplate.queryForObject("SELECT COUNT(*) from TRADE", Integer.class);
jobLauncherTestUtils.launchJob();
checkOutputFile("target/test-outputs/CustomerReport1.txt");
checkOutputFile("target/test-outputs/CustomerReport2.txt");
checkOutputTable(before);
-
}
private void checkOutputTable(int before) {
@@ -71,13 +67,14 @@ public class CompositeItemWriterSampleFunctionalTests {
}
};
- int after = jdbcTemplate.queryForInt("SELECT COUNT(*) from TRADE");
+ int after = jdbcTemplate.queryForObject("SELECT COUNT(*) from TRADE", Integer.class);
assertEquals(before + 5, after);
-
jdbcTemplate.query(GET_TRADES, new RowCallbackHandler() {
private int activeRow = 0;
+
+ @Override
public void processRow(ResultSet rs) throws SQLException {
Trade trade = trades.get(activeRow++);
@@ -101,5 +98,4 @@ public class CompositeItemWriterSampleFunctionalTests {
assertEquals(EXPECTED_OUTPUT_FILE, output);
}
-
}
diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/CustomerFilterJobFunctionalTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/CustomerFilterJobFunctionalTests.java
index afea2890f..98f7ab0ea 100644
--- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/CustomerFilterJobFunctionalTests.java
+++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/CustomerFilterJobFunctionalTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2012 the original author or authors.
+ * Copyright 2006-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,12 +43,9 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "/simple-job-launcher-context.xml", "/jobs/customerFilterJob.xml", "/job-runner-context.xml" })
public class CustomerFilterJobFunctionalTests {
-
private static final String GET_CUSTOMERS = "select NAME, CREDIT from CUSTOMER order by NAME";
-
private List customers;
private int activeRow = 0;
-
private JdbcOperations jdbcTemplate;
private Map credits = new HashMap();
@@ -65,7 +62,9 @@ public class CustomerFilterJobFunctionalTests {
jdbcTemplate.update("delete from TRADE");
jdbcTemplate.update("delete from CUSTOMER where ID > 4");
jdbcTemplate.update("update CUSTOMER set credit=100000");
+
List