Interface WorkflowRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Workflow,Long>, org.springframework.data.jpa.repository.JpaRepository<Workflow,Long>, org.springframework.data.repository.ListCrudRepository<Workflow,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<Workflow,Long>, org.springframework.data.repository.PagingAndSortingRepository<Workflow,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Workflow>, org.springframework.data.repository.Repository<Workflow,Long>

public interface WorkflowRepository extends org.springframework.data.jpa.repository.JpaRepository<Workflow,Long>
Data Access Object for the Workflow class
Author:
Dr. Thomas Bassler
  • Method Summary

    Modifier and Type
    Method
    Description
    Get all workflows for the given mission
    Get all workflows within a mission with the given name
    findByMissionCodeAndNameAndVersion(String missionCode, String name, String workflowVersion)
    Get the workflow with the given mission, name and version
    Get the workflow with the given UUID

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByUuid

      Workflow findByUuid(UUID uuid)
      Get the workflow with the given UUID
      Parameters:
      uuid - the UUID of the workflow
      Returns:
      the unique workflow identified by the given UUID
    • findByMissionCode

      @Query("select w from Workflow w where w.mission.code = ?1") List<Workflow> findByMissionCode(String missionCode)
      Get all workflows for the given mission
      Parameters:
      missionCode - the mission code
      Returns:
      the list of workflows for this mission
    • findByMissionCodeAndName

      @Query("select w from Workflow w where w.mission.code = ?1 and w.name = ?2") List<Workflow> findByMissionCodeAndName(String missionCode, String name)
      Get all workflows within a mission with the given name
      Parameters:
      missionCode - the mission code
      name - the name of the workflow
      Returns:
      the list of workflows for this mission having the given name
    • findByMissionCodeAndNameAndVersion

      @Query("select w from Workflow w where w.mission.code = ?1 and w.name = ?2 and w.workflowVersion = ?3") Workflow findByMissionCodeAndNameAndVersion(String missionCode, String name, String workflowVersion)
      Get the workflow with the given mission, name and version
      Parameters:
      missionCode - the mission code
      name - the workflow name
      workflowVersion - the workflow version
      Returns:
      the unique workflow identified by the search criteria