Interface TDetectorRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<TDetector,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<TDetector,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<TDetector,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<TDetector>, org.springframework.data.repository.Repository<TDetector,​java.lang.Long>

    public interface TDetectorRepository
    extends org.springframework.data.jpa.repository.JpaRepository<TDetector,​java.lang.Long>
    The database repository storing the detectors for each job template
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      TDetector findByNameAndTemplate​(java.lang.String name, Template template)
      Finds the detector with the supplied name that is linked to the supplied template
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

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

        count, exists, findAll, findOne
    • Method Detail

      • findByNameAndTemplate

        TDetector findByNameAndTemplate​(java.lang.String name,
                                        Template template)
        Finds the detector with the supplied name that is linked to the supplied template
        Parameters:
        name - the name of the detector to find
        template - the template the detector is linked to
        Returns:
        the detector found