Package org.apache.ofbiz.entityext.cache
Class EntityCacheServices
java.lang.Object
org.apache.ofbiz.entityext.cache.EntityCacheServices
- All Implemented Interfaces:
DistributedCacheClear
Entity Engine Cache Services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearAllEntityCaches
(DispatchContext dctx, Map<String, ? extends Object> context) Clear All Entity Caches ServiceclearCacheLine
(DispatchContext dctx, Map<String, ? extends Object> context) Clear Cache Line Service: one of the following context parameters is required: value, dummyPK or primaryKeyvoid
distributedClearCacheLine
(GenericPK primaryKey) void
void
distributedClearCacheLineByCondition
(String entityName, EntityCondition condition) void
Gets auth user login.void
setDelegator
(Delegator delegator, String userLoginId)
-
Constructor Details
-
EntityCacheServices
public EntityCacheServices()
-
-
Method Details
-
setDelegator
- Specified by:
setDelegator
in interfaceDistributedCacheClear
-
getAuthUserLogin
Gets auth user login.- Returns:
- the auth user login
-
distributedClearCacheLine
- Specified by:
distributedClearCacheLine
in interfaceDistributedCacheClear
-
distributedClearCacheLineFlexible
- Specified by:
distributedClearCacheLineFlexible
in interfaceDistributedCacheClear
-
distributedClearCacheLineByCondition
- Specified by:
distributedClearCacheLineByCondition
in interfaceDistributedCacheClear
-
distributedClearCacheLine
- Specified by:
distributedClearCacheLine
in interfaceDistributedCacheClear
-
clearAllCaches
public void clearAllCaches()- Specified by:
clearAllCaches
in interfaceDistributedCacheClear
-
clearAllEntityCaches
public static Map<String,Object> clearAllEntityCaches(DispatchContext dctx, Map<String, ? extends 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 Map<String,Object> clearCacheLine(DispatchContext dctx, Map<String, ? extends 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
-