EK - the entity cache key typeAK - the association cache key typeISK - the identity source cache key typepublic class PersistenceStrategy<EK,AK,ISK> extends Object
| Modifier and Type | Method and Description |
|---|---|
LocalCacheManager<EK,AK,ISK> |
getCacheManager()
Returns the
LocalCacheManager of this strategy, providing access to the actual ISPN caches. |
static PersistenceStrategy<?,?,?> |
getInstance(CacheMappingType cacheMapping,
org.infinispan.manager.EmbeddedCacheManager externalCacheManager,
URL configurationUrl,
org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform jtaPlatform,
Set<EntityKeyMetadata> entityTypes,
Set<AssociationKeyMetadata> associationTypes,
Set<IdSourceKeyMetadata> idSourceTypes)
Returns a persistence strategy based on the passed configuration.
|
KeyProvider<EK,AK,ISK> |
getKeyProvider()
Returns the
KeyProvider of this strategy, converting OGM core's key objects into the keys persisted in
the datastore. |
public static PersistenceStrategy<?,?,?> getInstance(CacheMappingType cacheMapping, org.infinispan.manager.EmbeddedCacheManager externalCacheManager, URL configurationUrl, org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform jtaPlatform, Set<EntityKeyMetadata> entityTypes, Set<AssociationKeyMetadata> associationTypes, Set<IdSourceKeyMetadata> idSourceTypes)
cacheMapping - the selected CacheMappingTypeexternalCacheManager - the infinispan cache managerconfigurationUrl - the location of the configuration filejtaPlatform - the JtaPlatformentityTypes - the meta-data of the entitiesassociationTypes - the meta-data of the associationsidSourceTypes - the meta-data of the id generatorspublic LocalCacheManager<EK,AK,ISK> getCacheManager()
LocalCacheManager of this strategy, providing access to the actual ISPN caches.public KeyProvider<EK,AK,ISK> getKeyProvider()
KeyProvider of this strategy, converting OGM core's key objects into the keys persisted in
the datastore.Copyright © 2010–2017 Hibernate. All rights reserved.