Package de.dlr.proseo.model.dao
Interface ConfigurationRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Configuration,,Long> org.springframework.data.jpa.repository.JpaRepository<Configuration,,Long> org.springframework.data.repository.ListCrudRepository<Configuration,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Configuration,,Long> org.springframework.data.repository.PagingAndSortingRepository<Configuration,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Configuration>,org.springframework.data.repository.Repository<Configuration,Long>
public interface ConfigurationRepository
extends org.springframework.data.jpa.repository.JpaRepository<Configuration,Long>
Data Access Object for the Processor class
- Author:
- Dr. Thomas Bassler
-
Method Summary
Modifier and TypeMethodDescriptionfindByMissionCodeAndProcessorNameAndConfigurationVersion(String mission, String processorName, String configurationVersion) Get the configuration 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
-
findByMissionCodeAndProcessorNameAndConfigurationVersion
@Query("select c from Configuration c where c.processorClass.mission.code = ?1 and c.processorClass.processorName = ?2 and c.configurationVersion = ?3") Configuration findByMissionCodeAndProcessorNameAndConfigurationVersion(String mission, String processorName, String configurationVersion) Get the configuration with the given mission, class name and version- Parameters:
mission- the mission codeprocessorName- the processor class nameconfigurationVersion- the configuration version- Returns:
- the unique configuration identified by the search criteria
-