Class DbEntityCacheKeyMapping
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.entitymanager.cache.DbEntityCacheKeyMapping
-
public class DbEntityCacheKeyMapping extends java.lang.Object
Provides the keys used byDbEntityCache
for organizing the differentDbEntity
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
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.Class<?>,java.lang.Class<?>>
entityCacheKeys
-
Constructor Summary
Constructors Constructor Description DbEntityCacheKeyMapping()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DbEntityCacheKeyMapping
defaultEntityCacheKeyMapping()
static DbEntityCacheKeyMapping
emptyMapping()
java.lang.Class<?>
getEntityCacheKey(java.lang.Class<?> entityType)
void
registerEntityCacheKey(java.lang.Class<?> entityType, java.lang.Class<?> cacheKey)
-
-
-
Method Detail
-
getEntityCacheKey
public java.lang.Class<?> getEntityCacheKey(java.lang.Class<?> entityType)
-
registerEntityCacheKey
public void registerEntityCacheKey(java.lang.Class<?> entityType, java.lang.Class<?> cacheKey)
-
defaultEntityCacheKeyMapping
public static DbEntityCacheKeyMapping defaultEntityCacheKeyMapping()
-
emptyMapping
public static DbEntityCacheKeyMapping emptyMapping()
-
-