01: package com.completex.objective.components.persistency.ocache.impl;
02:
03: import com.completex.objective.components.ocache.impl.MultiIndexCacheFactoryImpl;
04: import com.completex.objective.components.ocache.impl.DefaultCacheFactoryImpl;
05: import com.completex.objective.components.ocache.ValueTransformer;
06:
07: /**
08: * @author Gennady Krizhevsky
09: */
10: public class PersistencyMultiIndexCacheFactoryImpl extends
11: MultiIndexCacheFactoryImpl {
12:
13: private PersistencyCacheFactoryImpl defaultCacheFactory = new PersistencyCacheFactoryImpl();
14:
15: public PersistencyMultiIndexCacheFactoryImpl() {
16: }
17:
18: public PersistencyMultiIndexCacheFactoryImpl(
19: boolean transactionSensitive, boolean flatten, boolean clone) {
20: this (null, transactionSensitive, flatten, clone);
21: }
22:
23: public PersistencyMultiIndexCacheFactoryImpl(
24: ValueTransformer valueTransformer,
25: boolean transactionSensitive, boolean flatten, boolean clone) {
26: super (valueTransformer, transactionSensitive);
27: setFlatten(flatten);
28: setClone(clone);
29: }
30:
31: protected DefaultCacheFactoryImpl getDefaultCacheFactory() {
32: return defaultCacheFactory;
33: }
34:
35: public boolean isFlatten() {
36: return defaultCacheFactory.valueTransformer().isFlatten();
37: }
38:
39: public void setFlatten(boolean flatten) {
40: defaultCacheFactory.valueTransformer().setFlatten(flatten);
41: }
42:
43: public boolean isClone() {
44: return defaultCacheFactory.valueTransformer().isClone();
45: }
46:
47: public void setClone(boolean clone) {
48: defaultCacheFactory.valueTransformer().setClone(clone);
49: }
50: }
|