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.ListCrudRepository<T,ID>, org.springframework.data.repository.ListPagingAndSortingRepository<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

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface com.oracle.coherence.spring.cachestore.JpaRepositoryCacheLoader

    getId, load, loadAll

    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

    • 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>