Interface ContextStorageRespository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ContextSystemRecords,,String> org.springframework.data.jpa.repository.JpaRepository<ContextSystemRecords,,String> org.springframework.data.repository.ListCrudRepository<ContextSystemRecords,,String> org.springframework.data.repository.ListPagingAndSortingRepository<ContextSystemRecords,,String> org.springframework.data.repository.PagingAndSortingRepository<ContextSystemRecords,,String> org.springframework.data.repository.query.QueryByExampleExecutor<ContextSystemRecords>,org.springframework.data.repository.Repository<ContextSystemRecords,String>
@Repository
public interface ContextStorageRespository
extends org.springframework.data.jpa.repository.JpaRepository<ContextSystemRecords,String>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRecordByContextServiceIdAndContextId(String contextServiceId, String contextId) findAllByExpiresAtBefore(Timestamp expiresAt) findByContextServiceIdAndContextId(String contextServiceId, String contextId) 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
-
findByContextServiceIdAndContextId
Optional<ContextSystemRecords> findByContextServiceIdAndContextId(String contextServiceId, String contextId) -
deleteRecordByContextServiceIdAndContextId
@Modifying @Query(nativeQuery=true, value="DELETE FROM engine.context_system_records record WHERE record.context_service_id = :contextServiceId AND record.context_Id = :contextId") void deleteRecordByContextServiceIdAndContextId(@Param("contextServiceId") String contextServiceId, @Param("contextId") String contextId) -
findAllByExpiresAtBefore
-