public class DbEntityCacheKeyMapping extends Object
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.| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,Class<?>> |
entityCacheKeys |
| Constructor and Description |
|---|
DbEntityCacheKeyMapping() |
| Modifier and Type | Method and Description |
|---|---|
static DbEntityCacheKeyMapping |
defaultEntityCacheKeyMapping() |
static DbEntityCacheKeyMapping |
emptyMapping() |
Class<?> |
getEntityCacheKey(Class<?> entityType) |
void |
registerEntityCacheKey(Class<?> entityType,
Class<?> cacheKey) |
public static DbEntityCacheKeyMapping defaultEntityCacheKeyMapping()
public static DbEntityCacheKeyMapping emptyMapping()
Copyright © 2018. All rights reserved.