Interface IResourceSearchUrlDao

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ResourceSearchUrlEntity,Long>, IHapiFhirJpaRepository, org.springframework.data.jpa.repository.JpaRepository<ResourceSearchUrlEntity,Long>, org.springframework.data.repository.ListCrudRepository<ResourceSearchUrlEntity,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<ResourceSearchUrlEntity,Long>, org.springframework.data.repository.PagingAndSortingRepository<ResourceSearchUrlEntity,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ResourceSearchUrlEntity>, org.springframework.data.repository.Repository<ResourceSearchUrlEntity,Long>

public interface IResourceSearchUrlDao extends org.springframework.data.jpa.repository.JpaRepository<ResourceSearchUrlEntity,Long>, IHapiFhirJpaRepository
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
    deleteByResId(long resId)
     
    int
     

    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

    • deleteAllWhereCreatedBefore

      @Modifying @Query("DELETE FROM ResourceSearchUrlEntity s WHERE (s.myCreatedTime < :cutoff)") int deleteAllWhereCreatedBefore(@Param("cutoff") Date theCutoff)
    • deleteByResId

      @Modifying @Query("DELETE FROM ResourceSearchUrlEntity s WHERE (s.myResourcePid = :resID)") int deleteByResId(@Param("resID") long resId)
    • deleteByResIds

      @Modifying @Query("DELETE FROM ResourceSearchUrlEntity s WHERE s.myResourcePid IN (:resIDS)") int deleteByResIds(@Param("resIDS") List<Long> theIds)