org.ofbiz.entityext.cache
Class EntityCacheServices

java.lang.Object
  extended by org.ofbiz.entityext.cache.EntityCacheServices
All Implemented Interfaces:
DistributedCacheClear

public class EntityCacheServices
extends java.lang.Object
implements DistributedCacheClear

Entity Engine Cache Services


Field Summary
protected  GenericDelegator delegator
           
protected  LocalDispatcher dispatcher
           
static java.lang.String module
           
protected  java.lang.String userLoginId
           
 
Constructor Summary
EntityCacheServices()
           
 
Method Summary
 void clearAllCaches()
           
static java.util.Map clearAllEntityCaches(DispatchContext dctx, java.util.Map context)
          Clear All Entity Caches Service
static java.util.Map clearCacheLine(DispatchContext dctx, java.util.Map context)
          Clear Cache Line Service: one of the following context parameters is required: value, dummyPK or primaryKey
 void distributedClearCacheLine(GenericPK primaryKey)
           
 void distributedClearCacheLine(GenericValue value)
           
 void distributedClearCacheLineByCondition(java.lang.String entityName, EntityCondition condition)
           
 void distributedClearCacheLineFlexible(GenericEntity dummyPK)
           
 GenericValue getAuthUserLogin()
           
 void setDelegator(GenericDelegator delegator, java.lang.String userLoginId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

delegator

protected GenericDelegator delegator

dispatcher

protected LocalDispatcher dispatcher

userLoginId

protected java.lang.String userLoginId
Constructor Detail

EntityCacheServices

public EntityCacheServices()
Method Detail

setDelegator

public void setDelegator(GenericDelegator delegator,
                         java.lang.String userLoginId)
Specified by:
setDelegator in interface DistributedCacheClear

getAuthUserLogin

public GenericValue getAuthUserLogin()

distributedClearCacheLine

public void distributedClearCacheLine(GenericValue value)
Specified by:
distributedClearCacheLine in interface DistributedCacheClear

distributedClearCacheLineFlexible

public void distributedClearCacheLineFlexible(GenericEntity dummyPK)
Specified by:
distributedClearCacheLineFlexible in interface DistributedCacheClear

distributedClearCacheLineByCondition

public void distributedClearCacheLineByCondition(java.lang.String entityName,
                                                 EntityCondition condition)
Specified by:
distributedClearCacheLineByCondition in interface DistributedCacheClear

distributedClearCacheLine

public void distributedClearCacheLine(GenericPK primaryKey)
Specified by:
distributedClearCacheLine in interface DistributedCacheClear

clearAllCaches

public void clearAllCaches()
Specified by:
clearAllCaches in interface DistributedCacheClear

clearAllEntityCaches

public static java.util.Map clearAllEntityCaches(DispatchContext dctx,
                                                 java.util.Map context)
Clear All Entity Caches Service

Parameters:
ctx - The DispatchContext that this service is operating in
context - Map containing the input parameters
Returns:
Map with the result of the service, the output parameters

clearCacheLine

public static java.util.Map clearCacheLine(DispatchContext dctx,
                                           java.util.Map context)
Clear Cache Line Service: one of the following context parameters is required: value, dummyPK or primaryKey

Parameters:
ctx - The DispatchContext that this service is operating in
context - Map containing the input parameters
Returns:
Map with the result of the service, the output parameters