Package de.dlr.proseo.model.dao
Interface DataDrivenOrderTriggerRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<DataDrivenOrderTrigger,,Long> org.springframework.data.jpa.repository.JpaRepository<DataDrivenOrderTrigger,,Long> org.springframework.data.repository.ListCrudRepository<DataDrivenOrderTrigger,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<DataDrivenOrderTrigger,,Long> org.springframework.data.repository.PagingAndSortingRepository<DataDrivenOrderTrigger,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<DataDrivenOrderTrigger>,org.springframework.data.repository.Repository<DataDrivenOrderTrigger,Long>
public interface DataDrivenOrderTriggerRepository
extends org.springframework.data.jpa.repository.JpaRepository<DataDrivenOrderTrigger,Long>
Data Access Object for the DataDrivenOrderTrigger class
- Author:
- Ernst Melchinger
-
Method Summary
Modifier and TypeMethodDescriptionfindByMissionCode(String missionCode) Get all triggers for the given missionfindByMissionCodeAndName(String missionCode, String name) Get trigger within a mission with the given namefindByMissionCodeAndProductClass(String missionCode, ProductClass productclass) Get all triggers within a mission with a workflow having the given product class as inputMethods 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
-
findByMissionCode
@Query("select t from DataDrivenOrderTrigger t where t.mission.code = ?1") List<DataDrivenOrderTrigger> findByMissionCode(String missionCode) Get all triggers for the given mission- Parameters:
missionCode- the mission code- Returns:
- the list of triggers for this mission
-
findByMissionCodeAndName
@Query("select t from DataDrivenOrderTrigger t where t.mission.code = ?1 and t.name = ?2") DataDrivenOrderTrigger findByMissionCodeAndName(String missionCode, String name) Get trigger within a mission with the given name- Parameters:
missionCode- the mission codename- the name of the workflow- Returns:
- the trigger for this mission having the given name
-
findByMissionCodeAndProductClass
@Query("select t from DataDrivenOrderTrigger t where t.mission.code = ?1 and t.inputProductClass = ?2") List<DataDrivenOrderTrigger> findByMissionCodeAndProductClass(String missionCode, ProductClass productclass) Get all triggers within a mission with a workflow having the given product class as input- Parameters:
missionCode- the mission codeproductClass- the input product class of the trigger- Returns:
- the list of triggers for this mission using the given product class as input
-