public class OnePerKindCacheManager extends LocalCacheManager<EntityKey,AssociationKey,IdSourceKey>
LocalCacheManager which uses one cache for all entities, one cache for all associations and one cache for
all id sources.LocalCacheManager.Bucket<EK>| Constructor and Description |
|---|
OnePerKindCacheManager(org.infinispan.manager.EmbeddedCacheManager cacheManager) |
OnePerKindCacheManager(URL configUrl,
org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform platform,
OnePerKindKeyProvider keyProvider) |
| Modifier and Type | Method and Description |
|---|---|
org.infinispan.Cache<AssociationKey,Map<RowKey,Map<String,Object>>> |
getAssociationCache(AssociationKeyMetadata keyMetadata) |
org.infinispan.Cache<EntityKey,Map<String,Object>> |
getEntityCache(EntityKeyMetadata keyMetadata) |
org.infinispan.Cache<IdSourceKey,Object> |
getIdSourceCache(IdSourceKeyMetadata keyMetadata) |
Set<LocalCacheManager.Bucket<EntityKey>> |
getWorkBucketsFor(EntityKeyMetadata... entityKeyMetadatas)
Groups the given entity types by the caches they are stored in.
|
getCacheManager, stoppublic OnePerKindCacheManager(org.infinispan.manager.EmbeddedCacheManager cacheManager)
public OnePerKindCacheManager(URL configUrl, org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform platform, OnePerKindKeyProvider keyProvider)
public org.infinispan.Cache<EntityKey,Map<String,Object>> getEntityCache(EntityKeyMetadata keyMetadata)
getEntityCache in class LocalCacheManager<EntityKey,AssociationKey,IdSourceKey>public org.infinispan.Cache<AssociationKey,Map<RowKey,Map<String,Object>>> getAssociationCache(AssociationKeyMetadata keyMetadata)
getAssociationCache in class LocalCacheManager<EntityKey,AssociationKey,IdSourceKey>public org.infinispan.Cache<IdSourceKey,Object> getIdSourceCache(IdSourceKeyMetadata keyMetadata)
getIdSourceCache in class LocalCacheManager<EntityKey,AssociationKey,IdSourceKey>public Set<LocalCacheManager.Bucket<EntityKey>> getWorkBucketsFor(EntityKeyMetadata... entityKeyMetadatas)
LocalCacheManagergetWorkBucketsFor in class LocalCacheManager<EntityKey,AssociationKey,IdSourceKey>entityKeyMetadatas - the meta-data of the entitiesLocalCacheManager.Buckets containg the entities corressponding to the entity key meta-datasCopyright © 2010–2017 Hibernate. All rights reserved.