public class PerTableCacheManager extends LocalCacheManager<PersistentEntityKey,PersistentAssociationKey,PersistentIdSourceKey>
LocalCacheManager which uses a dedicated Cache per entity/association/id source table.LocalCacheManager.Bucket<EK>| Constructor and Description |
|---|
PerTableCacheManager(org.infinispan.manager.EmbeddedCacheManager cacheManager,
Set<EntityKeyMetadata> entityTypes,
Set<AssociationKeyMetadata> associationTypes,
Set<IdSourceKeyMetadata> idSourceTypes) |
PerTableCacheManager(URL configUrl,
org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform platform,
Set<EntityKeyMetadata> entityTypes,
Set<AssociationKeyMetadata> associationTypes,
Set<IdSourceKeyMetadata> idSourceTypes) |
| Modifier and Type | Method and Description |
|---|---|
org.infinispan.Cache<PersistentAssociationKey,Map<RowKey,Map<String,Object>>> |
getAssociationCache(AssociationKeyMetadata keyMetadata) |
org.infinispan.Cache<PersistentEntityKey,Map<String,Object>> |
getEntityCache(EntityKeyMetadata keyMetadata) |
org.infinispan.Cache<PersistentIdSourceKey,Object> |
getIdSourceCache(IdSourceKeyMetadata keyMetadata) |
Set<LocalCacheManager.Bucket<PersistentEntityKey>> |
getWorkBucketsFor(EntityKeyMetadata... entityKeyMetadatas)
Groups the given entity types by the caches they are stored in.
|
getCacheManager, stoppublic PerTableCacheManager(org.infinispan.manager.EmbeddedCacheManager cacheManager,
Set<EntityKeyMetadata> entityTypes,
Set<AssociationKeyMetadata> associationTypes,
Set<IdSourceKeyMetadata> idSourceTypes)
public PerTableCacheManager(URL configUrl, org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform platform, Set<EntityKeyMetadata> entityTypes, Set<AssociationKeyMetadata> associationTypes, Set<IdSourceKeyMetadata> idSourceTypes)
public org.infinispan.Cache<PersistentEntityKey,Map<String,Object>> getEntityCache(EntityKeyMetadata keyMetadata)
getEntityCache in class LocalCacheManager<PersistentEntityKey,PersistentAssociationKey,PersistentIdSourceKey>public org.infinispan.Cache<PersistentAssociationKey,Map<RowKey,Map<String,Object>>> getAssociationCache(AssociationKeyMetadata keyMetadata)
getAssociationCache in class LocalCacheManager<PersistentEntityKey,PersistentAssociationKey,PersistentIdSourceKey>public org.infinispan.Cache<PersistentIdSourceKey,Object> getIdSourceCache(IdSourceKeyMetadata keyMetadata)
getIdSourceCache in class LocalCacheManager<PersistentEntityKey,PersistentAssociationKey,PersistentIdSourceKey>public Set<LocalCacheManager.Bucket<PersistentEntityKey>> getWorkBucketsFor(EntityKeyMetadata... entityKeyMetadatas)
LocalCacheManagergetWorkBucketsFor in class LocalCacheManager<PersistentEntityKey,PersistentAssociationKey,PersistentIdSourceKey>entityKeyMetadatas - the meta-data of the entitiesLocalCacheManager.Buckets containg the entities corressponding to the entity key meta-datasCopyright © 2010–2017 Hibernate. All rights reserved.