
Package ca.uhn.fhir.jpa.dao.data
Interface IBinaryStorageEntityDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<BinaryStorageEntity,
,String> IHapiFhirJpaRepository
,org.springframework.data.jpa.repository.JpaRepository<BinaryStorageEntity,
,String> org.springframework.data.repository.ListCrudRepository<BinaryStorageEntity,
,String> org.springframework.data.repository.ListPagingAndSortingRepository<BinaryStorageEntity,
,String> org.springframework.data.repository.PagingAndSortingRepository<BinaryStorageEntity,
,String> org.springframework.data.repository.query.QueryByExampleExecutor<BinaryStorageEntity>
,org.springframework.data.repository.Repository<BinaryStorageEntity,
String>
public interface IBinaryStorageEntityDao
extends org.springframework.data.jpa.repository.JpaRepository<BinaryStorageEntity,String>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteByPid
(String theId) findByIdAndResourceId
(String theBlobId, String theResourceId) 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
-
findByIdAndResourceId
@Query("SELECT e FROM BinaryStorageEntity e WHERE e.myBlobId = :blob_id AND e.myResourceId = :resource_id") Optional<BinaryStorageEntity> findByIdAndResourceId(@Param("blob_id") String theBlobId, @Param("resource_id") String theResourceId) -
deleteByPid
@Modifying @Query("DELETE FROM BinaryStorageEntity t WHERE t.myBlobId = :pid") void deleteByPid(@Param("pid") String theId)
-