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 Type
    Method
    Description
    void
     
    findByIdAndResourceId(String theContentId, 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.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)