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.LocalCacheManager.KeyProcessor<EK>| Constructor and Description |
|---|
OnePerKindCacheManager(net.sf.ehcache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEachTuple(LocalCacheManager.KeyProcessor<SerializableEntityKey> processor,
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) |
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(LocalCacheManager.KeyProcessor<SerializableEntityKey> processor, EntityKeyMetadata... entityKeyMetadatas)
LocalCacheManagerforEachTuple in class LocalCacheManager<SerializableEntityKey,SerializableAssociationKey,SerializableIdSourceKey>processor - the processor that will be invoked on the keys of the given familiesentityKeyMetadatas - the meta-data of the keys to processCopyright © 2010–2016 Hibernate. All rights reserved.