Class Association

java.lang.Object
org.eclipse.persistence.mappings.Association
All Implemented Interfaces:
Map.Entry
Direct Known Subclasses:
PropertyAssociation, TypedAssociation

public class Association extends Object implements Map.Entry

Purpose: Generic association object. This can be used to map hashtable/map containers where the key and value primitives or independent objects.

Author:
James Sutherland
  • Field Details

  • Constructor Details

    • Association

      public Association()
      Default constructor.
    • Association

      public Association(Object key, Object value)
      PUBLIC: Create an association.
  • Method Details

    • getKey

      public Object getKey()
      PUBLIC: Return the key.
      Specified by:
      getKey in interface Map.Entry
    • getValue

      public Object getValue()
      PUBLIC: Return the value.
      Specified by:
      getValue in interface Map.Entry
    • setKey

      public void setKey(Object key)
      PUBLIC: Set the key.
    • setValue

      public Object setValue(Object value)
      PUBLIC: Set the value.
      Specified by:
      setValue in interface Map.Entry