org.ofbiz.entity.cache
Class AbstractEntityConditionCache<K,V>
java.lang.Object
org.ofbiz.entity.cache.AbstractCache<EntityCondition,java.util.Map<K,V>>
org.ofbiz.entity.cache.AbstractEntityConditionCache<K,V>
- Direct Known Subclasses:
- EntityListCache, EntityObjectCache
public abstract class AbstractEntityConditionCache<K,V>
- extends AbstractCache<EntityCondition,java.util.Map<K,V>>
Field Summary |
static java.lang.String |
module
|
Method Summary |
protected java.util.List<? extends java.util.Map<java.lang.String,java.lang.Object>> |
convert(boolean isPK,
java.lang.String targetEntityName,
GenericEntity entity)
|
protected V |
get(java.lang.String entityName,
EntityCondition condition,
K key)
|
protected java.util.Map<K,V> |
getConditionCache(java.lang.String entityName,
EntityCondition condition)
|
static EntityCondition |
getConditionKey(EntityCondition condition)
|
static EntityCondition |
getFrozenConditionKey(EntityCondition condition)
|
protected ModelEntity |
getModelCheckValid(GenericEntity oldEntity,
GenericEntity newEntity)
|
protected java.util.Map<K,V> |
getOrCreateConditionCache(java.lang.String entityName,
EntityCondition condition)
|
protected static boolean |
isNull(java.util.Map value)
|
protected V |
put(java.lang.String entityName,
EntityCondition condition,
K key,
V value)
|
void |
remove(java.lang.String entityName,
EntityCondition condition)
|
protected V |
remove(java.lang.String entityName,
EntityCondition condition,
K key)
|
void |
storeHook(boolean isPK,
GenericEntity oldEntity,
GenericEntity newEntity)
|
void |
storeHook(GenericEntity newEntity)
|
void |
storeHook(GenericEntity oldEntity,
GenericEntity newEntity)
|
void |
storeHook(GenericPK oldPK,
GenericEntity newEntity)
|
protected
<T1 extends java.util.Map<java.lang.String,java.lang.Object>,T2 extends java.util.Map<java.lang.String,java.lang.Object>>
void |
|
storeHook(java.lang.String entityName,
boolean isPK,
java.util.List<T1> oldValues,
java.util.List<T2> newValues)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final java.lang.String module
AbstractEntityConditionCache
protected AbstractEntityConditionCache(java.lang.String delegatorName,
java.lang.String id)
get
protected V get(java.lang.String entityName,
EntityCondition condition,
K key)
put
protected V put(java.lang.String entityName,
EntityCondition condition,
K key,
V value)
remove
public void remove(java.lang.String entityName,
EntityCondition condition)
remove
protected V remove(java.lang.String entityName,
EntityCondition condition,
K key)
getConditionKey
public static final EntityCondition getConditionKey(EntityCondition condition)
getFrozenConditionKey
public static final EntityCondition getFrozenConditionKey(EntityCondition condition)
getConditionCache
protected java.util.Map<K,V> getConditionCache(java.lang.String entityName,
EntityCondition condition)
getOrCreateConditionCache
protected java.util.Map<K,V> getOrCreateConditionCache(java.lang.String entityName,
EntityCondition condition)
isNull
protected static final boolean isNull(java.util.Map value)
getModelCheckValid
protected ModelEntity getModelCheckValid(GenericEntity oldEntity,
GenericEntity newEntity)
storeHook
public void storeHook(GenericEntity newEntity)
storeHook
public void storeHook(GenericEntity oldEntity,
GenericEntity newEntity)
storeHook
public void storeHook(GenericPK oldPK,
GenericEntity newEntity)
convert
protected java.util.List<? extends java.util.Map<java.lang.String,java.lang.Object>> convert(boolean isPK,
java.lang.String targetEntityName,
GenericEntity entity)
storeHook
public void storeHook(boolean isPK,
GenericEntity oldEntity,
GenericEntity newEntity)
storeHook
protected <T1 extends java.util.Map<java.lang.String,java.lang.Object>,T2 extends java.util.Map<java.lang.String,java.lang.Object>> void storeHook(java.lang.String entityName,
boolean isPK,
java.util.List<T1> oldValues,
java.util.List<T2> newValues)