org.springframework.batch.core.repository.dao

## Class MapStepExecutionDao

- java.lang.Object
- - org.springframework.batch.core.repository.dao.MapStepExecutionDao

- All Implemented Interfaces:
    StepExecutionDao

  Deprecated.
  as of v4.3 in favor of using the `JdbcStepExecutionDao` with an in-memory database. Scheduled for removal in v5.0.

      @Deprecated
      public class MapStepExecutionDao
      extends java.lang.Object
      implements StepExecutionDao

  In-memory implementation of `StepExecutionDao`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MapStepExecutionDao()` Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addStepExecutions(JobExecution jobExecution)` Deprecated. Retrieve all the `StepExecution` for the parent `JobExecution`.
    `void` | `clear()` Deprecated.
    `int` | `countStepExecutions(JobInstance jobInstance, java.lang.String stepName)` Deprecated. Counts all the `StepExecution` for a given step name.
    `StepExecution` | `getLastStepExecution(JobInstance jobInstance, java.lang.String stepName)` Deprecated. Retrieve the last `StepExecution` for a given `JobInstance` ordered by starting time and then id.
    `StepExecution` | `getStepExecution(JobExecution jobExecution, java.lang.Long stepExecutionId)` Deprecated. Retrieve a `StepExecution` from its id.
    `void` | `saveStepExecution(StepExecution stepExecution)` Deprecated. Save the given StepExecution.
    `void` | `saveStepExecutions(java.util.Collection<StepExecution> stepExecutions)` Deprecated. Save the given collection of StepExecution as a batch.
    `void` | `updateStepExecution(StepExecution stepExecution)` Deprecated. Update the given StepExecution Preconditions: Id must not be null.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MapStepExecutionDao

          public MapStepExecutionDao()

      Deprecated.

  - ### Method Detail

    - #### clear

          public void clear()

      Deprecated.

    - #### saveStepExecution

          public void saveStepExecution(StepExecution stepExecution)

      Deprecated.
      Description copied from interface: `StepExecutionDao`
      Save the given StepExecution. Preconditions: Id must be null. Postconditions: Id will be set to a unique Long.
      Specified by:
        `saveStepExecution` in interface `StepExecutionDao`
      Parameters:
        `stepExecution` - `StepExecution` instance to be saved.

    - #### updateStepExecution

          public void updateStepExecution(StepExecution stepExecution)

      Deprecated.
      Description copied from interface: `StepExecutionDao`
      Update the given StepExecution Preconditions: Id must not be null.
      Specified by:
        `updateStepExecution` in interface `StepExecutionDao`
      Parameters:
        `stepExecution` - `StepExecution` instance to be updated.

    - #### getStepExecution

          @Nullable
          public StepExecution getStepExecution(JobExecution jobExecution,
                                                          java.lang.Long stepExecutionId)

      Deprecated.
      Description copied from interface: `StepExecutionDao`
      Retrieve a `StepExecution` from its id.
      Specified by:
        `getStepExecution` in interface `StepExecutionDao`
      Parameters:
        `jobExecution` - the parent `JobExecution`
        `stepExecutionId` - the step execution id
      Returns:
        a `StepExecution`

    - #### getLastStepExecution

          public StepExecution getLastStepExecution(JobInstance jobInstance,
                                                    java.lang.String stepName)

      Deprecated.
      Description copied from interface: `StepExecutionDao`
      Retrieve the last `StepExecution` for a given `JobInstance` ordered by starting time and then id.
      Specified by:
        `getLastStepExecution` in interface `StepExecutionDao`
      Parameters:
        `jobInstance` - the parent `JobInstance`
        `stepName` - the name of the step
      Returns:
        a `StepExecution`

    - #### addStepExecutions

          public void addStepExecutions(JobExecution jobExecution)

      Deprecated.
      Description copied from interface: `StepExecutionDao`
      Retrieve all the `StepExecution` for the parent `JobExecution`.
      Specified by:
        `addStepExecutions` in interface `StepExecutionDao`
      Parameters:
        `jobExecution` - the parent job execution

    - #### saveStepExecutions

          public void saveStepExecutions(java.util.Collection<StepExecution> stepExecutions)

      Deprecated.
      Description copied from interface: `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.
      Specified by:
        `saveStepExecutions` in interface `StepExecutionDao`
      Parameters:
        `stepExecutions` - a collection of `JobExecution` instances to be saved.

    - #### countStepExecutions

          public int countStepExecutions(JobInstance jobInstance,
                                         java.lang.String stepName)

      Deprecated.
      Description copied from interface: `StepExecutionDao`
      Counts all the `StepExecution` for a given step name.
      Specified by:
        `countStepExecutions` in interface `StepExecutionDao`
      Parameters:
        `jobInstance` - the parent `JobInstance`
        `stepName` - the name of the step
      Returns:
        the count of `StepExecution`s for a given step