Interface JpaRepositoryCacheStore<T,ID>
-
- Type Parameters:
T
- the domain type the repository manages and the type of values in the cacheID
- 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 JPACacheStore
that extends a SpringJpaRepository
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, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
-
Methods inherited from interface com.oracle.coherence.spring.cachestore.JpaRepositoryCacheLoader
getId, load, loadAll
-
-
-
-
Method Detail
-
erase
@Transactional default void erase(ID key)
-
eraseAll
@Transactional default void eraseAll(Collection<? extends ID> colKeys)
-
store
@Transactional default void store(ID key, T value)
-
-