Interface JpaRepositoryCacheStore<T,​ID>

  • Type Parameters:
    T - the domain type the repository manages and the type of values in the cache
    ID - the type of the id of the entity the repository manages and the type of the cache key
    All Superinterfaces:
    com.tangosol.net.cache.CacheLoader<ID,​T>, com.tangosol.net.cache.CacheStore<ID,​T>, org.springframework.data.repository.CrudRepository<T,​ID>, org.springframework.data.jpa.repository.JpaRepository<T,​ID>, JpaRepositoryCacheLoader<T,​ID>, org.springframework.data.repository.PagingAndSortingRepository<T,​ID>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T,​ID>

    @NoRepositoryBean
    public interface JpaRepositoryCacheStore<T,​ID>
    extends JpaRepositoryCacheLoader<T,​ID>, com.tangosol.net.cache.CacheStore<ID,​T>
    A generic Spring JPA CacheStore that extends a Spring JpaRepository for the database operations.
    Since:
    3.0
    Author:
    Jonathan Knight 2021.08.17
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void erase​(ID key)  
      default void eraseAll​(Collection<? extends ID> colKeys)  
      default void store​(ID key, T value)  
      default void storeAll​(Map<? extends ID,​? extends T> entries)  
      • 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, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • erase

        @Transactional
        default void erase​(ID key)
        Specified by:
        erase in interface com.tangosol.net.cache.CacheStore<T,​ID>
      • eraseAll

        @Transactional
        default void eraseAll​(Collection<? extends ID> colKeys)
        Specified by:
        eraseAll in interface com.tangosol.net.cache.CacheStore<T,​ID>
      • store

        @Transactional
        default void store​(ID key,
                           T value)
        Specified by:
        store in interface com.tangosol.net.cache.CacheStore<T,​ID>
      • storeAll

        @Transactional
        default void storeAll​(Map<? extends ID,​? extends T> entries)
        Specified by:
        storeAll in interface com.tangosol.net.cache.CacheStore<T,​ID>