Package org.springframework.cloud.task.batch.listener.support

# Class MapTaskBatchDao

java.lang.Object
org.springframework.cloud.task.batch.listener.support.MapTaskBatchDao

All Implemented Interfaces:
  `TaskBatchDao`

public class MapTaskBatchDao extends Object implements TaskBatchDao
Map implementation of the `TaskBatchDao`.

This is intended for testing purposes only!

Author:
  Michael Minella

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MapTaskBatchDao(Map<Long,Set<Long>> relationships)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `saveRelationship(TaskExecution taskExecution, org.springframework.batch.core.JobExecution jobExecution)`
  Saves the relationship between a task execution and a job execution.

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

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

- ## Constructor Details

  - ### MapTaskBatchDao

    public MapTaskBatchDao(Map<Long,Set<Long>> relationships)

- ## Method Details

  - ### saveRelationship

    public void saveRelationship(TaskExecution taskExecution, org.springframework.batch.core.JobExecution jobExecution)
    Description copied from interface: `TaskBatchDao`
    Saves the relationship between a task execution and a job execution.
    Specified by:
      `saveRelationship` in interface `TaskBatchDao`
    Parameters:
      `taskExecution` - task execution
      `jobExecution` - job execution