Interface ProcessorRepository

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

public interface ProcessorRepository extends org.springframework.data.jpa.repository.JpaRepository<Processor,Long>
Data Access Object for the Processor class
Author:
Dr. Thomas Bassler
  • Method Summary

    Modifier and Type
    Method
    Description
    findByMissionCodeAndProcessorNameAndProcessorVersion(String mission, String processorName, String processorVersion)
    Get the processor with the given mission, class name and version

    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

    • findByMissionCodeAndProcessorNameAndProcessorVersion

      @Query("select p from Processor p where p.processorClass.mission.code = ?1 and p.processorClass.processorName = ?2 and p.processorVersion = ?3") Processor findByMissionCodeAndProcessorNameAndProcessorVersion(String mission, String processorName, String processorVersion)
      Get the processor with the given mission, class name and version
      Parameters:
      mission - the misson code
      processorName - the processor class name
      processorVersion - the processor version
      Returns:
      the unique processor identified by the search criteria