Coherence

Description

Functions for querying the Cache

Categories

NameDescription
ConstantsFunctions for querying the Cache
ExtractorsFunctions for querying the Cache
FiltersFunctions for querying the Cache
QueryFunctions for querying the Cache

Functions

NameSignature and Synopsis
C_CacheLoadConceptByExtIdConcept C_CacheLoadConceptByExtId(String extId, boolean includeContained)
Retrieve from the cache the concept whose external identifier is specified
C_CacheLoadConceptByIdConcept C_CacheLoadConceptById(long id, boolean includeContained)
Retrieve from the cache the concept whose identifier is specified
C_CacheLoadConceptIndexedByExtIdConcept C_CacheLoadConceptIndexedByExtId(String extId, boolean includeContained, String className)
Retrieve from the cache the concept whose external identifier is specified. This method relies on an index that should be added on the concept's extId. See {@link #C_Index(String, Object, boolean)} and the extractor to be used for the index creation - C_EntityExtIdGetter().
C_CacheLoadConceptsByExtIdObject[] C_CacheLoadConceptsByExtId(String[] extIds)
Bulk retrieval of Concepts from the Cache.
C_CacheLoadEntityConcept C_CacheLoadEntity(Entity entity)
Load the entity into RETE
C_CacheLoadEventByExtIdEvent C_CacheLoadEventByExtId(String extId)
Retrieve from the cache the event whose external identifier is specified
C_CacheLoadEventByIdEvent C_CacheLoadEventById(long id)
Retrieve from the cache the event whose identifier is specified
C_CacheLoadParentvoid C_CacheLoadParent(Concept cept, boolean recursive)
Loads from cache the parent concepts of the given concept.
C_CacheNameString C_CacheName(String entityPath)
Returns the cache name for the specified entityPath
C_CacheReevaluatevoid C_CacheReevaluate(Entity entity)
Reload the entity into RETE and reevaluate all rules
C_ClassNameString C_ClassName(String entityPath)
Returns the generated class name
C_EnableCacheUpdatevoid C_EnableCacheUpdate(boolean updateCache)
Set to true if the current RTC changes be replicated to the cache else RTC changes will lead to cache eviction instead of updates
C_Indexvoid C_Index(String cacheName, Object property, boolean isOrdered)
Creates an index on the property
C_Lockboolean C_Lock(String key, long timeout, boolean localOnly)
Locks the object represented by the key within a rule session
C_TransactionPropertiesvoid C_TransactionProperties(boolean autoCommit, int concurrency, int isolation)
Set the transaction properties for the current RTC
C_UnLockvoid C_UnLock(String key, boolean localOnly)
Unlocks the object represented by the key within a rule session