Package de.dlr.proseo.model.dao
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 TypeMethodDescriptionfindByMissionCodeAndProcessorNameAndProcessorVersion(String mission, String processorName, String processorVersion) Get the processor with the given mission, class name and versionMethods 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
-
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 codeprocessorName- the processor class nameprocessorVersion- the processor version- Returns:
- the unique processor identified by the search criteria
-