public interface RelationalCache<V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String parentKey,
Object key)
Read through exists method that will be called if cache enabled
RelationalDao.exists(String, Object) is used |
V |
get(String parentKey,
Object key)
Read through method that will be called if a cache enabled
CacheableRelationalDao.get(String, Object) is used |
void |
put(String parentKey,
int first,
int numResults,
List<V> entities)
Write through method that will be called if cache enabled
RelationalDao.select(String, DetachedCriteria, int, int, Function) is used |
void |
put(String parentKey,
List<V> entities)
Write through method that will be called if cache enabled
RelationalDao.select(String, DetachedCriteria, int, int, Function) is used |
void |
put(String parentKey,
Object key,
V entity)
Write through method that will be called if cache enabled
CacheableRelationalDao.save(String, Object) is used |
List<V> |
select(String parentKey)
Read through method that will be called if a cache enabled
RelationalDao.select(String, DetachedCriteria, int, int, Function) is used |
List<V> |
select(String parentKey,
int first,
int numResults)
Read through method that will be called if a cache enabled
RelationalDao.select(String, DetachedCriteria, int, int, Function) is used |
void put(String parentKey, Object key, V entity)
CacheableRelationalDao.save(String, Object) is usedparentKey - The key of the parent that the entity is related tokey - The key that needs to be used to write this element to cacheentity - Entity that needs to be written into cachevoid put(String parentKey, List<V> entities)
RelationalDao.select(String, DetachedCriteria, int, int, Function) is usedparentKey - The key of the parent that the entity is related toentities - List of entities that needs to be written into cachevoid put(String parentKey, int first, int numResults, List<V> entities)
RelationalDao.select(String, DetachedCriteria, int, int, Function) is usedparentKey - The key of the parent that the entity is related toentities - List of entities that needs to be written into cacheboolean exists(String parentKey, Object key)
RelationalDao.exists(String, Object) is usedparentKey - The key of the parent that the entity is related tokey - The key that needs to be used to write this element to cacheV get(String parentKey, Object key)
CacheableRelationalDao.get(String, Object) is usedparentKey - The key of the parent the entity is related tokey - The key of the entity that needs to be readList<V> select(String parentKey)
RelationalDao.select(String, DetachedCriteria, int, int, Function) is usedparentKey - The key of the parent the entity is related toList<V> select(String parentKey, int first, int numResults)
RelationalDao.select(String, DetachedCriteria, int, int, Function) is usedparentKey - The key of the parent the entity is related toCopyright © 2016–2023. All rights reserved.