类 MapStepExecutionDao
- java.lang.Object
- org.springframework.batch.core.repository.dao.MapStepExecutionDao
- 所有已实现的接口:
StepExecutionDao
public class MapStepExecutionDao extends java.lang.Object implements StepExecutionDao
In-memory implementation ofStepExecutionDao
.
构造器概要
构造器 构造器 说明 MapStepExecutionDao()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addStepExecutions(JobExecution jobExecution)
Retrieve all theStepExecution
for the parentJobExecution
.void
clear()
StepExecution
getStepExecution(JobExecution jobExecution, java.lang.Long stepExecutionId)
Retrieve aStepExecution
from its id.void
saveStepExecution(StepExecution stepExecution)
Save the given StepExecution.void
saveStepExecutions(java.util.Collection<StepExecution> stepExecutions)
Save the given collection of StepExecution as a batch.void
updateStepExecution(StepExecution stepExecution)
Update the given StepExecution Preconditions: Id must not be null.
构造器详细资料
MapStepExecutionDao
public MapStepExecutionDao()
方法详细资料
clear
public void clear()
saveStepExecution
public void saveStepExecution(StepExecution stepExecution)
从接口复制的说明:StepExecutionDao
Save the given StepExecution. Preconditions: Id must be null. Postconditions: Id will be set to a unique Long.- 指定者:
saveStepExecution
在接口中StepExecutionDao
- 参数:
stepExecution
-StepExecution
instance to be saved.
updateStepExecution
public void updateStepExecution(StepExecution stepExecution)
从接口复制的说明:StepExecutionDao
Update the given StepExecution Preconditions: Id must not be null.- 指定者:
updateStepExecution
在接口中StepExecutionDao
- 参数:
stepExecution
-StepExecution
instance to be updated.
getStepExecution
@Nullable public StepExecution getStepExecution(JobExecution jobExecution, java.lang.Long stepExecutionId)
从接口复制的说明:StepExecutionDao
Retrieve aStepExecution
from its id.- 指定者:
getStepExecution
在接口中StepExecutionDao
- 参数:
jobExecution
- the parentJobExecution
stepExecutionId
- the step execution id- 返回:
- a
StepExecution
addStepExecutions
public void addStepExecutions(JobExecution jobExecution)
从接口复制的说明:StepExecutionDao
Retrieve all theStepExecution
for the parentJobExecution
.- 指定者:
addStepExecutions
在接口中StepExecutionDao
- 参数:
jobExecution
- the parent job execution
saveStepExecutions
public void saveStepExecutions(java.util.Collection<StepExecution> stepExecutions)
从接口复制的说明:StepExecutionDao
Save the given collection of StepExecution as a batch. Preconditions: StepExecution Id must be null. Postconditions: StepExecution Id will be set to a unique Long.- 指定者:
saveStepExecutions
在接口中StepExecutionDao
- 参数:
stepExecutions
- a collection ofJobExecution
instances to be saved.