Interface OrbitOrderTriggerRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<OrbitOrderTrigger,Long>, org.springframework.data.jpa.repository.JpaRepository<OrbitOrderTrigger,Long>, org.springframework.data.repository.ListCrudRepository<OrbitOrderTrigger,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<OrbitOrderTrigger,Long>, org.springframework.data.repository.PagingAndSortingRepository<OrbitOrderTrigger,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<OrbitOrderTrigger>, org.springframework.data.repository.Repository<OrbitOrderTrigger,Long>

public interface OrbitOrderTriggerRepository extends org.springframework.data.jpa.repository.JpaRepository<OrbitOrderTrigger,Long>
Data Access Object for the OrbitOrderTrigger class
Author:
Ernst Melchinger
  • Method Summary

    Modifier and Type
    Method
    Description
    Get all triggers for the given mission
    Get trigger within a mission with the given name

    Methods inherited from interface org.springframework.data.repository.CrudRepository

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

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByMissionCode

      @Query("select t from OrbitOrderTrigger t where t.mission.code = ?1") List<OrbitOrderTrigger> 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 OrbitOrderTrigger t where t.mission.code = ?1 and t.name = ?2") OrbitOrderTrigger findByMissionCodeAndName(String missionCode, String name)
      Get trigger within a mission with the given name
      Parameters:
      missionCode - the mission code
      name - the name of the workflow
      Returns:
      the trigger for this mission having the given name