BATCH-1908. Added batch inserts to JdbcExecutionContextDao and JdbcStepExecutionDao. Added JobRepository.addAll(Collection<StepExecution>)
This commit is contained in:
committed by
Michael Minella
parent
feadfd35ca
commit
2f9df44443
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package org.springframework.batch.core.configuration.xml;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.springframework.batch.core.JobExecution;
|
||||
import org.springframework.batch.core.JobInstance;
|
||||
import org.springframework.batch.core.JobParameters;
|
||||
@@ -27,6 +29,7 @@ import org.springframework.beans.factory.BeanNameAware;
|
||||
|
||||
/**
|
||||
* @author Dan Garrette
|
||||
* @author David Turanski
|
||||
* @since 2.0.1
|
||||
*/
|
||||
public class DummyJobRepository implements JobRepository, BeanNameAware {
|
||||
@@ -88,4 +91,8 @@ public class DummyJobRepository implements JobRepository, BeanNameAware {
|
||||
public void updateExecutionContext(JobExecution jobExecution) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addAll(Collection<StepExecution> stepExecutions) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package org.springframework.batch.core.step;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.springframework.batch.core.JobExecution;
|
||||
import org.springframework.batch.core.JobInstance;
|
||||
import org.springframework.batch.core.JobParameters;
|
||||
@@ -23,6 +25,7 @@ import org.springframework.batch.core.repository.JobRepository;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author David Turanski
|
||||
*
|
||||
*/
|
||||
public class JobRepositorySupport implements JobRepository {
|
||||
@@ -96,4 +99,8 @@ public class JobRepositorySupport implements JobRepository {
|
||||
public void updateExecutionContext(JobExecution jobExecution) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addAll(Collection<StepExecution> stepExecutions) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,6 +11,8 @@ import static org.springframework.batch.core.BatchStatus.FAILED;
|
||||
import static org.springframework.batch.core.BatchStatus.STOPPED;
|
||||
import static org.springframework.batch.core.BatchStatus.UNKNOWN;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.springframework.batch.core.ExitStatus;
|
||||
@@ -45,6 +47,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
|
||||
*
|
||||
* @author Lucas Ward
|
||||
* @author Dave Syer
|
||||
* @author David Turanski
|
||||
*
|
||||
*/
|
||||
public class TaskletStepExceptionTests {
|
||||
@@ -467,6 +470,10 @@ public class TaskletStepExceptionTests {
|
||||
@Override
|
||||
public void updateExecutionContext(JobExecution jobExecution) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addAll(Collection<StepExecution> stepExecutions) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user