public class OnePerKindCacheManager extends LocalCacheManager<SerializableEntityKey,SerializableAssociationKey,SerializableIdSourceKey>
LocalCacheManager which uses one cache for all entities, one cache for all associations and one cache for
all id sources.| Constructor and Description |
|---|
OnePerKindCacheManager(net.sf.ehcache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEachTuple(ModelConsumer consumer,
EntityKeyMetadata... entityKeyMetadatas)
Determines the caches storing the entities of the given key families, fetches the keys of these families and
invokes the given processor for each key.
|
Cache<SerializableAssociationKey> |
getAssociationCache(AssociationKeyMetadata keyMetadata) |
Cache<SerializableEntityKey> |
getEntityCache(EntityKeyMetadata keyMetadata) |
Cache<SerializableIdSourceKey> |
getIdSourceCache(IdSourceKeyMetadata keyMetadata) |
createTuple, getCacheManager, stoppublic OnePerKindCacheManager(net.sf.ehcache.CacheManager cacheManager)
public Cache<SerializableEntityKey> getEntityCache(EntityKeyMetadata keyMetadata)
getEntityCache in class LocalCacheManager<SerializableEntityKey,SerializableAssociationKey,SerializableIdSourceKey>public Cache<SerializableAssociationKey> getAssociationCache(AssociationKeyMetadata keyMetadata)
getAssociationCache in class LocalCacheManager<SerializableEntityKey,SerializableAssociationKey,SerializableIdSourceKey>public Cache<SerializableIdSourceKey> getIdSourceCache(IdSourceKeyMetadata keyMetadata)
getIdSourceCache in class LocalCacheManager<SerializableEntityKey,SerializableAssociationKey,SerializableIdSourceKey>public void forEachTuple(ModelConsumer consumer, EntityKeyMetadata... entityKeyMetadatas)
LocalCacheManagerforEachTuple in class LocalCacheManager<SerializableEntityKey,SerializableAssociationKey,SerializableIdSourceKey>consumer - process the keys of the given familiesentityKeyMetadatas - the meta-data of the keys to processCopyright © 2010–2016 Hibernate. All rights reserved.