Interface ProtectedContentRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ProtectedContent,Long>,org.springframework.data.jpa.repository.JpaRepository<ProtectedContent,Long>,org.springframework.data.repository.PagingAndSortingRepository<ProtectedContent,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<ProtectedContent>,org.springframework.data.repository.Repository<ProtectedContent,Long>
@Repository public interface ProtectedContentRepository extends org.springframework.data.jpa.repository.JpaRepository<ProtectedContent,Long>
Spring Data repository for the ProtectedContent entity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ProtectedContent>findByCertificateId(Long certId)List<ProtectedContent>findByCSRId(Long csrId)List<ProtectedContent>findByDeleteAfterPassed(Instant deleteAfter)List<ProtectedContent>findByTypeRelationId(ProtectedContentType type, ContentRelationType relationType, Long id)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
-
-
-
Method Detail
-
findByCertificateId
@Query(name="ProtectedContent.findByCertificateId") List<ProtectedContent> findByCertificateId(@Param("certId") Long certId)
-
findByCSRId
@Query(name="ProtectedContent.findByCSRId") List<ProtectedContent> findByCSRId(@Param("csrId") Long csrId)
-
findByTypeRelationId
@Query(name="ProtectedContent.findByTypeRelationId") List<ProtectedContent> findByTypeRelationId(@Param("type") ProtectedContentType type, @Param("relationType") ContentRelationType relationType, @Param("id") Long id)
-
findByDeleteAfterPassed
@Query(name="ProtectedContent.findByDeleteAfterPassed") List<ProtectedContent> findByDeleteAfterPassed(@Param("deleteAfter") Instant deleteAfter)
-
-