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,
net.sf.ehcache.CacheManager externalCacheManager,
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, net.sf.ehcache.CacheManager externalCacheManager, Set<EntityKeyMetadata> entityTypes, Set<AssociationKeyMetadata> associationTypes, Set<IdSourceKeyMetadata> idSourceTypes)
cacheMapping - the selected CacheMappingTypeexternalCacheManager - the Ehcache cache managerentityTypes - 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–2016 Hibernate. All rights reserved.