Package de.dlr.proseo.model.dao
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 TypMethodeBeschreibungfindByMissionCode
(String missionCode) Get all workflows for the given missionfindByMissionCodeAndName
(String missionCode, String name) Get all workflows within a mission with the given namefindByMissionCodeAndNameAndVersion
(String missionCode, String name, String workflowVersion) Get the workflow with the given mission, name and versionfindByUuid
(UUID uuid) Get the workflow with the given UUIDVon 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
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 codename
- 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 codename
- the workflow nameworkflowVersion
- the workflow version- Gibt zurück:
- the unique workflow identified by the search criteria
-