From e8ef2ae31d0a17133e554702c5abb8df6d61df02 Mon Sep 17 00:00:00 2001 From: trisberg Date: Thu, 11 Dec 2008 17:47:35 +0000 Subject: [PATCH] BATCH-965: renamed batch writer to JdbcBatchItemWriter and added named parameter support, added JPA and Hibernate writers --- .../src/main/resources/jobs/batchUpdateJob.xml | 6 +++--- spring-batch-samples/src/site/apt/index.apt | 4 ++-- ...unctionalTests.java => JdbcBatchJobFunctionalTests.java} | 4 ++-- ...-context.xml => JdbcBatchJobFunctionalTests-context.xml} | 0 4 files changed, 7 insertions(+), 7 deletions(-) rename spring-batch-samples/src/test/java/org/springframework/batch/sample/{BatchSqlUpdateJobFunctionalTests.java => JdbcBatchJobFunctionalTests.java} (62%) rename spring-batch-samples/src/test/resources/org/springframework/batch/sample/{BatchSqlUpdateJobFunctionalTests-context.xml => JdbcBatchJobFunctionalTests-context.xml} (100%) diff --git a/spring-batch-samples/src/main/resources/jobs/batchUpdateJob.xml b/spring-batch-samples/src/main/resources/jobs/batchUpdateJob.xml index b6d98cb9e..26517580c 100644 --- a/spring-batch-samples/src/main/resources/jobs/batchUpdateJob.xml +++ b/spring-batch-samples/src/main/resources/jobs/batchUpdateJob.xml @@ -22,8 +22,8 @@ - - + + @@ -31,7 +31,7 @@ - + diff --git a/spring-batch-samples/src/site/apt/index.apt b/spring-batch-samples/src/site/apt/index.apt index 8c7e9d27b..6f01ec3ab 100644 --- a/spring-batch-samples/src/site/apt/index.apt +++ b/spring-batch-samples/src/site/apt/index.apt @@ -135,10 +135,10 @@ Spring Batch Samples * Batch Update ({batchUpdate}) The purpose of this sample is to show to usage of the - <<>> to make efficient updates to a + <<>> to make efficient updates to a database table. - The <<>> accepts a special form of + The <<>> accepts a special form of <<>> as a (mandatory) dependency. This is responsible for copying fields from the item to be written to a <<>> matching the SQL query that has been diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/BatchSqlUpdateJobFunctionalTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/JdbcBatchJobFunctionalTests.java similarity index 62% rename from spring-batch-samples/src/test/java/org/springframework/batch/sample/BatchSqlUpdateJobFunctionalTests.java rename to spring-batch-samples/src/test/java/org/springframework/batch/sample/JdbcBatchJobFunctionalTests.java index 340325441..5fe58328c 100644 --- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/BatchSqlUpdateJobFunctionalTests.java +++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/JdbcBatchJobFunctionalTests.java @@ -5,12 +5,12 @@ import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** - * Test for BatchSqlUpdateJob - checks that customer credit has been updated to expected value. + * Test for JdbcBatchItemWriterJob - checks that customer credit has been updated to expected value. * * @author Robert Kasanicky */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration -public class BatchSqlUpdateJobFunctionalTests extends AbstractCustomerCreditIncreaseTests { +public class JdbcBatchJobFunctionalTests extends AbstractCustomerCreditIncreaseTests { } diff --git a/spring-batch-samples/src/test/resources/org/springframework/batch/sample/BatchSqlUpdateJobFunctionalTests-context.xml b/spring-batch-samples/src/test/resources/org/springframework/batch/sample/JdbcBatchJobFunctionalTests-context.xml similarity index 100% rename from spring-batch-samples/src/test/resources/org/springframework/batch/sample/BatchSqlUpdateJobFunctionalTests-context.xml rename to spring-batch-samples/src/test/resources/org/springframework/batch/sample/JdbcBatchJobFunctionalTests-context.xml