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 Type
    Method
    Description
    void
     
     
    findByContextServiceIdAndContextId(String contextServiceId, String contextId)
     

    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

    • 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

      List<ContextSystemRecords> findAllByExpiresAtBefore(Timestamp expiresAt)