Package de.dlr.proseo.model.dao
Schnittstelle ProductClassRepository
- Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<ProductClass,
,Long> org.springframework.data.jpa.repository.JpaRepository<ProductClass,
,Long> org.springframework.data.repository.PagingAndSortingRepository<ProductClass,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ProductClass>
,org.springframework.data.repository.Repository<ProductClass,
Long>
@Repository
public interface ProductClassRepository
extends org.springframework.data.jpa.repository.JpaRepository<ProductClass,Long>
Data Access Object for the ProductClassRepository class
- Autor:
- Dr. Thomas Bassler
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindByMissionCode
(String missionCode) Find all product classes for a given mission codefindByMissionCodeAndProductType
(String missionCode, String productType) Find a product class by mission code and product typefindByProductType
(String productType) Find all product classes for a given product type (at most one per mission)Von Schnittstelle geerbte Methoden org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
Von Schnittstelle geerbte Methoden org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
Von Schnittstelle geerbte Methoden org.springframework.data.repository.PagingAndSortingRepository
findAll
Von Schnittstelle geerbte Methoden org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Methodendetails
-
findByMissionCode
@Query("select pc from ProductClass pc where pc.mission.code = ?1") List<ProductClass> findByMissionCode(String missionCode) Find all product classes for a given mission code- Parameter:
missionCode
- the code of the mission- Gibt zurück:
- a list of product classes
-
findByProductType
Find all product classes for a given product type (at most one per mission)- Parameter:
productType
- the (prosEO-internal) product type- Gibt zurück:
- a list of product classes
-
findByMissionCodeAndProductType
@Query("select pc from ProductClass pc where pc.mission.code = ?1 and pc.productType = ?2") ProductClass findByMissionCodeAndProductType(String missionCode, String productType) Find a product class by mission code and product type- Parameter:
missionCode
- the code of the missionproductType
- the (prosEO-internal) product type- Gibt zurück:
- the unique product class identified by the mission code and product type
-