Package de.dlr.proseo.model.dao
Schnittstelle ProductFileRepository
- Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<ProductFile,
,Long> org.springframework.data.jpa.repository.JpaRepository<ProductFile,
,Long> org.springframework.data.repository.PagingAndSortingRepository<ProductFile,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ProductFile>
,org.springframework.data.repository.Repository<ProductFile,
Long>
@Repository
public interface ProductFileRepository
extends org.springframework.data.jpa.repository.JpaRepository<ProductFile,Long>
Data Access Object for the ProductFile class
- Autor:
- Dr. Thomas Bassler
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindByFileName
(String fileName) Get all product files for a given file namefindByProcessingFacilityId
(long facilityId) Get all product files for a given processing facility idfindByProductId
(long productId) Get all product files for a given product idVon 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
-
findByProductId
@Query("select pf from ProductFile pf where product_id = ?1") List<ProductFile> findByProductId(long productId) Get all product files for a given product id- Parameter:
productId
- the database id of the product- Gibt zurück:
- a (possibly empty) list of product files
-
findByProcessingFacilityId
@Query("select pf from ProductFile pf where processing_facility_id = ?1") List<ProductFile> findByProcessingFacilityId(long facilityId) Get all product files for a given processing facility id- Parameter:
facilityId
- the database id of the processing facility- Gibt zurück:
- a (possibly empty) list of product files
-
findByFileName
@Query("select pf from ProductFile pf where product_file_name = ?1") List<ProductFile> findByFileName(String fileName) Get all product files for a given file name- Parameter:
fileName
- the name of the product file- Gibt zurück:
- a (possibly empty) list of product files
-