Class DbEntityCacheKeyMapping
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.entitymanager.cache.DbEntityCacheKeyMapping
-
public class DbEntityCacheKeyMapping extends java.lang.ObjectProvides 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 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 DbEntityCacheKeyMappingdefaultEntityCacheKeyMapping()static DbEntityCacheKeyMappingemptyMapping()java.lang.Class<?>getEntityCacheKey(java.lang.Class<?> entityType)voidregisterEntityCacheKey(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()
-
-