Package org.apache.cayenne.configuration
Class DefaultObjectStoreFactory
- java.lang.Object
-
- org.apache.cayenne.configuration.DefaultObjectStoreFactory
-
- All Implemented Interfaces:
ObjectStoreFactory
public class DefaultObjectStoreFactory extends Object implements ObjectStoreFactory
A default implementation ofObjectStoreFactorywhich makes decision to turnObjectStore's syncing with parentDataRowStoreon or off basing onRuntimeProperties.- Since:
- 3.1
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectMapRetainStrategyretainStrategyprotected RuntimePropertiesruntimeProperties
-
Constructor Summary
Constructors Constructor Description DefaultObjectStoreFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectStorecreateObjectStore(DataRowStore dataRowCache)Creates anObjectStorewith provided dataRowCache
-
-
-
Field Detail
-
runtimeProperties
protected RuntimeProperties runtimeProperties
-
retainStrategy
protected ObjectMapRetainStrategy retainStrategy
-
-
Method Detail
-
createObjectStore
public ObjectStore createObjectStore(DataRowStore dataRowCache)
Description copied from interface:ObjectStoreFactoryCreates anObjectStorewith provided dataRowCache- Specified by:
createObjectStorein interfaceObjectStoreFactory
-
-