@Override public void saveExecutionContexts(Collection<StepExecution> stepExecutions) { Assert.notNull(stepExecutions, "Attempt to save an null collection of step executions"); Map<Long, String> serializedContexts = new HashMap<>(stepExecutions.size()); for (StepExecution stepExecution : stepExecutions) { Long executionId = stepExecution.getId(); ExecutionContext executionContext = stepExecution.getExecutionContext(); Assert.notNull(executionId, "ExecutionId must not be null."); Assert.notNull(executionContext, "The ExecutionContext must not be null."); serializedContexts.put(executionId, serializeContext(executionContext)); } persistSerializedContexts(serializedContexts, INSERT_STEP_EXECUTION_CONTEXT); }
@Override public void saveExecutionContexts(Collection<StepExecution> stepExecutions) { Assert.notNull(stepExecutions, "Attempt to save an null collection of step executions"); Map<Long, String> serializedContexts = new HashMap<Long, String>(stepExecutions.size()); for (StepExecution stepExecution : stepExecutions) { Long executionId = stepExecution.getId(); ExecutionContext executionContext = stepExecution.getExecutionContext(); Assert.notNull(executionId, "ExecutionId must not be null."); Assert.notNull(executionContext, "The ExecutionContext must not be null."); serializedContexts.put(executionId, serializeContext(executionContext)); } persistSerializedContexts(serializedContexts, INSERT_STEP_EXECUTION_CONTEXT); }
@Override public void saveExecutionContexts(Collection<StepExecution> stepExecutions) { Assert.notNull(stepExecutions, "Attempt to save an null collection of step executions"); Map<Long, String> serializedContexts = new HashMap<Long, String>(stepExecutions.size()); for (StepExecution stepExecution : stepExecutions) { Long executionId = stepExecution.getId(); ExecutionContext executionContext = stepExecution.getExecutionContext(); Assert.notNull(executionId, "ExecutionId must not be null."); Assert.notNull(executionContext, "The ExecutionContext must not be null."); serializedContexts.put(executionId, serializeContext(executionContext)); } persistSerializedContexts(serializedContexts, INSERT_STEP_EXECUTION_CONTEXT); }
@Override public void saveExecutionContexts(Collection<StepExecution> stepExecutions) { Assert.notNull(stepExecutions, "Attempt to save an null collection of step executions"); Map<Long, String> serializedContexts = new HashMap<Long, String>(stepExecutions.size()); for (StepExecution stepExecution : stepExecutions) { Long executionId = stepExecution.getId(); ExecutionContext executionContext = stepExecution.getExecutionContext(); Assert.notNull(executionId, "ExecutionId must not be null."); Assert.notNull(executionContext, "The ExecutionContext must not be null."); serializedContexts.put(executionId, serializeContext(executionContext)); } persistSerializedContexts(serializedContexts, INSERT_STEP_EXECUTION_CONTEXT); }