Class DbEntityCacheKeyMapping
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.entitymanager.cache.DbEntityCacheKeyMapping
-
public class DbEntityCacheKeyMapping extends Object
Provides the keys used byDbEntityCachefor organizing the differentDbEntitytypes. 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 DbEntityCacheKeyMappingdefaultEntityCacheKeyMapping()static DbEntityCacheKeyMappingemptyMapping()Class<?>getEntityCacheKey(Class<?> entityType)voidregisterEntityCacheKey(Class<?> entityType, Class<?> cacheKey)
-
-
-
Method Detail
-
defaultEntityCacheKeyMapping
public static DbEntityCacheKeyMapping defaultEntityCacheKeyMapping()
-
emptyMapping
public static DbEntityCacheKeyMapping emptyMapping()
-
-