Package de.dlr.proseo.model.dao
Interface CalendarOrderTriggerRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CalendarOrderTrigger,,Long> org.springframework.data.jpa.repository.JpaRepository<CalendarOrderTrigger,,Long> org.springframework.data.repository.ListCrudRepository<CalendarOrderTrigger,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<CalendarOrderTrigger,,Long> org.springframework.data.repository.PagingAndSortingRepository<CalendarOrderTrigger,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<CalendarOrderTrigger>,org.springframework.data.repository.Repository<CalendarOrderTrigger,Long>
public interface CalendarOrderTriggerRepository
extends org.springframework.data.jpa.repository.JpaRepository<CalendarOrderTrigger,Long>
Data Access Object for the CalendarOrderTrigger 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 nameMethods 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 CalendarOrderTrigger t where t.mission.code = ?1") List<CalendarOrderTrigger> 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 CalendarOrderTrigger t where t.mission.code = ?1 and t.name = ?2") CalendarOrderTrigger 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
-