Class DbEntityCacheKeyMapping
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.entitymanager.cache.DbEntityCacheKeyMapping
-
public class DbEntityCacheKeyMapping extends 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 Map<Class<?>,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()
Class<?>
getEntityCacheKey(Class<?> entityType)
void
registerEntityCacheKey(Class<?> entityType, Class<?> cacheKey)
-
-
-
Method Detail
-
defaultEntityCacheKeyMapping
public static DbEntityCacheKeyMapping defaultEntityCacheKeyMapping()
-
emptyMapping
public static DbEntityCacheKeyMapping emptyMapping()
-
-