org.camunda.bpm.engine.impl.db.entitymanager.cache
Class DbEntityCacheKeyMapping
java.lang.Object
org.camunda.bpm.engine.impl.db.entitymanager.cache.DbEntityCacheKeyMapping
public class DbEntityCacheKeyMapping
- extends Object
Provides the keys used by DbEntityCache for organizing the different DbEntity types.
Especially for polymorphic types, it is important that they are accessible in the cache under one
common key such that querying the cache with a superclass or with a subclass both return the cached
entities.
- Author:
- Thorben Lindhauer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityCacheKeys
protected Map<Class<?>,Class<?>> entityCacheKeys
DbEntityCacheKeyMapping
public DbEntityCacheKeyMapping()
getEntityCacheKey
public Class<?> getEntityCacheKey(Class<?> entityType)
registerEntityCacheKey
public void registerEntityCacheKey(Class<?> entityType,
Class<?> cacheKey)
defaultEntityCacheKeyMapping
public static DbEntityCacheKeyMapping defaultEntityCacheKeyMapping()
emptyMapping
public static DbEntityCacheKeyMapping emptyMapping()
Copyright © 2016 camunda services GmbH. All rights reserved.