
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 TypeMethodDescriptionvoiddeleteByPid(String theId) findByIdAndResourceId(String theContentId, String theResourceId) Methods 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
-
findByIdAndResourceId
@Query("SELECT e FROM BinaryStorageEntity e WHERE e.myContentId = :content_id AND e.myResourceId = :resource_id") Optional<BinaryStorageEntity> findByIdAndResourceId(@Param("content_id") String theContentId, @Param("resource_id") String theResourceId) -
deleteByPid
@Modifying @Query("DELETE FROM BinaryStorageEntity t WHERE t.myContentId = :pid") void deleteByPid(@Param("pid") String theId)
-