java.lang.Object
org.eclipse.persistence.mappings.Association
All Implemented Interfaces:
Map.Entry
Direct Known Subclasses:
FieldTranslation, PropertyAssociation, QueryKeyReference, 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.

Since:
TOPLink/Java 3.0
  • 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