Schnittstelle WorkflowRepository

Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<Workflow,Long>, org.springframework.data.jpa.repository.JpaRepository<Workflow,Long>, org.springframework.data.repository.PagingAndSortingRepository<Workflow,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Workflow>, org.springframework.data.repository.Repository<Workflow,Long>

@Repository public interface WorkflowRepository extends org.springframework.data.jpa.repository.JpaRepository<Workflow,Long>
Data Access Object for the Workflow class
Autor:
Dr. Thomas Bassler
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.CrudRepository

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

    Von Schnittstelle geerbte Methoden org.springframework.data.jpa.repository.JpaRepository

    deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findOne
  • Methodendetails

    • findByUuid

      Workflow findByUuid(UUID uuid)
      Get the workflow with the given UUID
      Parameter:
      uuid - the UUID of the workflow
      Gibt zurück:
      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
      Parameter:
      missionCode - the mission code
      Gibt zurück:
      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
      Parameter:
      missionCode - the mission code
      name - the name of the workflow
      Gibt zurück:
      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
      Parameter:
      missionCode - the mission code
      name - the workflow name
      workflowVersion - the workflow version
      Gibt zurück:
      the unique workflow identified by the search criteria