# Class DefaultObjectMapRetainStrategy

java.lang.Object
org.apache.cayenne.access.DefaultObjectMapRetainStrategy

All Implemented Interfaces:
  `ObjectMapRetainStrategy`

public class DefaultObjectMapRetainStrategy extends Object implements ObjectMapRetainStrategy
Default implementation of `ObjectMapRetainStrategy`.

Since:
  3.1

- ## Field Summary

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultObjectMapRetainStrategy(RuntimeProperties runtimeProperties)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<Object, Persistent>`
  `createObjectMap()`

  ### Methods inherited from class Object

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

- ## Field Details

  - ### runtimeProperties

    protected RuntimeProperties runtimeProperties

- ## Constructor Details

  - ### DefaultObjectMapRetainStrategy

    public DefaultObjectMapRetainStrategy(RuntimeProperties runtimeProperties)

- ## Method Details

  - ### createObjectMap

    public Map<Object, Persistent> createObjectMap()
    Specified by:
      `createObjectMap` in interface `ObjectMapRetainStrategy`