Interface JpaRepositoryCacheLoader<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> org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.jpa.repository.JpaRepository<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>
- All Known Subinterfaces:
JpaRepositoryCacheStore<T,ID>
@NoRepositoryBean
public interface JpaRepositoryCacheLoader<T,ID>
extends org.springframework.data.jpa.repository.JpaRepository<T,ID>, com.tangosol.net.cache.CacheLoader<ID,T>
A Coherence
CacheLoader that is also a JpaRepository allowing the
loader methods to use the repository to load data.- Since:
- 3.0
- Author:
- Jonathan Knight 2021.08.17
-
Method Summary
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
-
getId
Returns the cache key for the given entity value.- Parameters:
value- the entity value to obtain the cache key from- Returns:
- the cache key for the given entity value
-
load
-
loadAll
-