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 Type
    Method
    Description
    Get all triggers for the given mission
    Get trigger within a mission with the given name
    Get all triggers within a mission with a workflow having the given product class as input

    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 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 code
      name - 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 code
      productClass - the input product class of the trigger
      Returns:
      the list of triggers for this mission using the given product class as input