Package | Description |
---|---|
dk.heick.caching | |
dk.heick.caching.persistences.jpa.grouped |
Modifier and Type | Method and Description |
---|---|
static <K extends Serializable,V extends Serializable> |
LRUCachingMapFactory.createJPAGroupedCache(LRUCachingMapConfiguration configuration,
String group,
Class<? extends CachedGroupJPAEntity<K,V>> entityGroupClazz,
javax.persistence.EntityManagerFactory entityManagerFactory,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructs a group JPA cache for an entity, where multiple cache instances can share the same table.
|
Modifier and Type | Method and Description |
---|---|
protected CachedGroupJPAEntity<K,V> |
DefaultGroupJPAEntityValueManager.constructEntity(K key,
V value,
Date expireDateTime)
Constructs an instance of "CachedGroupJPAEntity" clazz.
|
CachedGroupJPAEntity<K,V> |
DefaultCachedGroupJPAEntityRepository.get(K key) |
CachedGroupJPAEntity<K,V> |
CachedGroupJPAEntityRepository.get(K key)
Gets a row with the key and group.
|
Modifier and Type | Method and Description |
---|---|
List<CachedGroupJPAEntity<K,V>> |
DefaultCachedGroupJPAEntityRepository.getAll() |
List<CachedGroupJPAEntity<K,V>> |
CachedGroupJPAEntityRepository.getAll()
Get all rows from the table with this "group"
|
Class<? extends CachedGroupJPAEntity<K,V>> |
DefaultCachedGroupJPAEntityRepository.getEntityClazz() |
Class<? extends CachedGroupJPAEntity<K,V>> |
CachedGroupJPAEntityRepository.getEntityClazz()
Gets the class instance of CachedGroupJPAEntity.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultCachedGroupJPAEntityRepository.insert(CachedGroupJPAEntity<K,V> entity) |
void |
CachedGroupJPAEntityRepository.insert(CachedGroupJPAEntity<K,V> entity)
This will insert a row in the table with the "group".
|
Constructor and Description |
---|
DefaultCachedGroupJPAEntityRepository(String group,
Class<? extends CachedGroupJPAEntity<K,V>> entityClazz,
javax.persistence.EntityManagerFactory entityManagerFactory)
Constructor
|
DefaultGroupJPAEntityValueManager(String group,
Class<? extends CachedGroupJPAEntity<K,V>> clazz,
javax.persistence.EntityManagerFactory entityManagerFactory,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructor.
|
Copyright © 2016. All rights reserved.