public class PerTableCacheManager extends LocalCacheManager<PerTableSerializableEntityKey,PerTableSerializableAssociationKey,PerTableSerializableIdSourceKey>
LocalCacheManager which uses a dedicated Cache per entity/association/id source table.LocalCacheManager.KeyProcessor<EK>| Constructor and Description |
|---|
PerTableCacheManager(net.sf.ehcache.CacheManager cacheManager,
Set<EntityKeyMetadata> entityTypes,
Set<AssociationKeyMetadata> associationTypes,
Set<IdSourceKeyMetadata> idSourceTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEachTuple(LocalCacheManager.KeyProcessor<PerTableSerializableEntityKey> 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<PerTableSerializableAssociationKey> |
getAssociationCache(AssociationKeyMetadata keyMetadata) |
Cache<PerTableSerializableEntityKey> |
getEntityCache(EntityKeyMetadata keyMetadata) |
Cache<PerTableSerializableIdSourceKey> |
getIdSourceCache(IdSourceKeyMetadata keyMetadata) |
getCacheManager, stoppublic PerTableCacheManager(net.sf.ehcache.CacheManager cacheManager,
Set<EntityKeyMetadata> entityTypes,
Set<AssociationKeyMetadata> associationTypes,
Set<IdSourceKeyMetadata> idSourceTypes)
public Cache<PerTableSerializableEntityKey> getEntityCache(EntityKeyMetadata keyMetadata)
public Cache<PerTableSerializableAssociationKey> getAssociationCache(AssociationKeyMetadata keyMetadata)
public Cache<PerTableSerializableIdSourceKey> getIdSourceCache(IdSourceKeyMetadata keyMetadata)
public void forEachTuple(LocalCacheManager.KeyProcessor<PerTableSerializableEntityKey> processor, EntityKeyMetadata... entityKeyMetadatas)
LocalCacheManagerforEachTuple in class LocalCacheManager<PerTableSerializableEntityKey,PerTableSerializableAssociationKey,PerTableSerializableIdSourceKey>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.