Package de.dlr.proseo.model.dao
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 TypeMethodDescriptionfindByMissionCode(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 UUIDMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByUuid
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 codename- 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 codename- the workflow nameworkflowVersion- the workflow version- Returns:
- the unique workflow identified by the search criteria
-