DefaultObjectStoreFactory (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.configuration, class: DefaultObjectStoreFactory

# Class DefaultObjectStoreFactory

java.lang.Object
org.apache.cayenne.configuration.DefaultObjectStoreFactory

All Implemented Interfaces:
  `ObjectStoreFactory`

public class DefaultObjectStoreFactory extends Object implements ObjectStoreFactory
A default implementation of `ObjectStoreFactory` which makes decision to turn `ObjectStore`'s syncing with parent `DataRowStore` on or off basing on `RuntimeProperties`.

Since:
  3.1

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected ObjectMapRetainStrategy`
  `retainStrategy`
  `protected RuntimeProperties`
  `runtimeProperties`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultObjectStoreFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ObjectStore`
  `createObjectStore(DataRowStore dataRowCache)`
  Creates an `ObjectStore` with provided dataRowCache

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### runtimeProperties

    protected RuntimeProperties runtimeProperties

  - ### retainStrategy

    protected ObjectMapRetainStrategy retainStrategy

- ## Constructor Details

  - ### DefaultObjectStoreFactory

    public DefaultObjectStoreFactory()

- ## Method Details

  - ### createObjectStore

    public ObjectStore createObjectStore(DataRowStore dataRowCache)
    Description copied from interface: `ObjectStoreFactory`
    Creates an `ObjectStore` with provided dataRowCache
    Specified by:
      `createObjectStore` in interface `ObjectStoreFactory`