Package org.apache.ofbiz.entityext.cache
Class EntityCacheServices
- java.lang.Object
-
- org.apache.ofbiz.entityext.cache.EntityCacheServices
-
- All Implemented Interfaces:
DistributedCacheClear
public class EntityCacheServices extends java.lang.Object implements DistributedCacheClear
Entity Engine Cache Services
-
-
Field Summary
Fields Modifier and Type Field Description protected Delegator
delegator
protected LocalDispatcher
dispatcher
static java.lang.String
module
protected java.lang.String
userLoginId
-
Constructor Summary
Constructors Constructor Description EntityCacheServices()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAllCaches()
static java.util.Map<java.lang.String,java.lang.Object>
clearAllEntityCaches(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Clear All Entity Caches Servicestatic java.util.Map<java.lang.String,java.lang.Object>
clearCacheLine(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Clear Cache Line Service: one of the following context parameters is required: value, dummyPK or primaryKeyvoid
distributedClearCacheLine(GenericPK primaryKey)
void
distributedClearCacheLine(GenericValue value)
void
distributedClearCacheLineByCondition(java.lang.String entityName, EntityCondition condition)
void
distributedClearCacheLineFlexible(GenericEntity dummyPK)
GenericValue
getAuthUserLogin()
void
setDelegator(Delegator delegator, java.lang.String userLoginId)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
delegator
protected Delegator delegator
-
dispatcher
protected LocalDispatcher dispatcher
-
userLoginId
protected java.lang.String userLoginId
-
-
Method Detail
-
setDelegator
public void setDelegator(Delegator delegator, java.lang.String userLoginId)
- Specified by:
setDelegator
in interfaceDistributedCacheClear
-
getAuthUserLogin
public GenericValue getAuthUserLogin()
-
distributedClearCacheLine
public void distributedClearCacheLine(GenericValue value)
- Specified by:
distributedClearCacheLine
in interfaceDistributedCacheClear
-
distributedClearCacheLineFlexible
public void distributedClearCacheLineFlexible(GenericEntity dummyPK)
- Specified by:
distributedClearCacheLineFlexible
in interfaceDistributedCacheClear
-
distributedClearCacheLineByCondition
public void distributedClearCacheLineByCondition(java.lang.String entityName, EntityCondition condition)
- Specified by:
distributedClearCacheLineByCondition
in interfaceDistributedCacheClear
-
distributedClearCacheLine
public void distributedClearCacheLine(GenericPK primaryKey)
- Specified by:
distributedClearCacheLine
in interfaceDistributedCacheClear
-
clearAllCaches
public void clearAllCaches()
- Specified by:
clearAllCaches
in interfaceDistributedCacheClear
-
clearAllEntityCaches
public static java.util.Map<java.lang.String,java.lang.Object> clearAllEntityCaches(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Clear All Entity Caches Service- Parameters:
dctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
clearCacheLine
public static java.util.Map<java.lang.String,java.lang.Object> clearCacheLine(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Clear Cache Line Service: one of the following context parameters is required: value, dummyPK or primaryKey- Parameters:
dctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
-