| java.lang.Object com.completex.objective.components.ocache.impl.DefaultCacheFactoryImpl
All known Subclasses: com.completex.objective.components.persistency.ocache.impl.PersistencyCacheFactoryImpl,
Method Summary | |
protected static OdalCache | extractDelegate(OdalCache cache) | protected static OdalKeyFactory | extractKeyFactory(OdalCache cache, OdalKeyFactory keyFactory) | public synchronized OdalKeyedCache | getCache(String name) | protected Map | getCaches() | public OdalCacheConfig | getGlobalConfig() | public ValueTransformer | getValueTransformer() | public boolean | isTransactionSensitive() Returns true if the cache returned with #getCache() method is transaction sensitive. | public synchronized void | registerCache(OdalCache cache) Registers either SafeTransactionSensitiveCacheImpl wrapper of the cache if transactionSensitive == true
or SafeBasicCacheImpl otherwise. | public void | registerCache(OdalCache cache, OdalCacheConfig cacheConfig) | public synchronized void | registerCache(OdalCache cache, OdalKeyFactory keyFactory) Registers either SafeTransactionSensitiveCacheImpl wrapper of the cache if transactionSensitive == true
or SafeBasicCacheImpl otherwise. | public void | registerCache(OdalCache cache, OdalKeyFactory keyFactory, OdalCacheConfig cacheConfig) Registers either SafeTransactionSensitiveCacheImpl wrapper of the cache if transactionSensitive == true
or SafeBasicCacheImpl otherwise. | public void | setGlobalConfig(OdalCacheConfig globalConfig) | public void | setTransactionSensitive(boolean transactionSensitive) Set true if the cache returned with #getCache() method is transaction sensitive. | public void | setValueTransformer(ValueTransformer valueTransformer) | protected OdalCache | toOdalKeyedCache(OdalCache cache, OdalKeyFactory keyFactory, boolean markCacheCollectionElements, ValueTransformer valueTransformer, boolean safe) | protected OdalCache | toTransactionSensitiveOdalKeyedCache(OdalCache cache, OdalKeyFactory keyFactory, boolean markCacheCollectionElements, ValueTransformer valueTransformer, boolean safe) | protected OdalCache | transformCache(OdalCache cache, OdalKeyFactory keyFactory, boolean markCacheCollectionElements, ValueTransformer valueTransformer, boolean transactionSensitive) | public synchronized void | unregisterCache(String name) |
DEFAULT_FLUSH_INTERVAL | final public static String DEFAULT_FLUSH_INTERVAL(Code) | | |
DefaultCacheFactoryImpl | public DefaultCacheFactoryImpl()(Code) | | |
extractDelegate | protected static OdalCache extractDelegate(OdalCache cache)(Code) | | Extracts undelying cache if cache is instance of SafeWrapper
Parameters: cache - undelying cache |
extractKeyFactory | protected static OdalKeyFactory extractKeyFactory(OdalCache cache, OdalKeyFactory keyFactory)(Code) | | Extracts undelying cache key factory if cache is instance of OdalKeyedCache
Parameters: cache - Parameters: keyFactory - undelying cache key factory |
isTransactionSensitive | public boolean isTransactionSensitive()(Code) | | Returns true if the cache returned with #getCache() method is transaction sensitive. For transaction sensitive
cache all the removed items get redundantly removed on commit or rollback.
true if the cache returned is synchronized with transaction |
setTransactionSensitive | public void setTransactionSensitive(boolean transactionSensitive)(Code) | | Set true if the cache returned with #getCache() method is transaction sensitive. For transaction sensitive
cache all the removed items get redundantly removed on commit or rollback.
Parameters: transactionSensitive - |
transformCache | protected OdalCache transformCache(OdalCache cache, OdalKeyFactory keyFactory, boolean markCacheCollectionElements, ValueTransformer valueTransformer, boolean transactionSensitive)(Code) | | Transforms cache either to SafeTransactionSensitiveCacheImpl wrapper of the cache if transactionSensitive == true
or SafeBasicCacheImpl otherwise
Parameters: cache - Parameters: keyFactory - Parameters: markCacheCollectionElements - Parameters: valueTransformer - Parameters: transactionSensitive - transformed cache |
|
|