Class PersistentObjectMap

java.lang.Object
org.apache.cayenne.util.RelationshipFault
org.apache.cayenne.util.PersistentObjectMap
All Implemented Interfaces:
Serializable, Map, ValueHolder

public class PersistentObjectMap
extends RelationshipFault
implements Map, ValueHolder
Since:
3.0
See Also:
Serialized Form
  • Field Details

    • objectMap

      protected Map objectMap
    • mapKeyAccessor

      protected Accessor mapKeyAccessor
  • Constructor Details

    • PersistentObjectMap

      public PersistentObjectMap​(Persistent relationshipOwner, String relationshipName, Accessor mapKeyAccessor)
      Creates PersistentObjectList initializing it with list owner persistent object and relationship name that this list maps to.
      Parameters:
      relationshipOwner - persistent object that owns this list.
      relationshipName - a query used to resolve the list
      mapKeyAccessor - an accessor that can read a map key from an object.
  • Method Details