org.eclipse.persistence.mappings
Class Association

java.lang.Object
  extended by 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.

Since:
TOPLink/Java 3.0
Author:
James Sutherland

Constructor Summary
Association()
          Default constructor.
Association(Object key, Object value)
          PUBLIC: Create an association.
 
Method Summary
 Object getKey()
          PUBLIC: Return the key.
 Object getValue()
          PUBLIC: Return the value.
 void setKey(Object key)
          PUBLIC: Set the key.
 Object setValue(Object value)
          PUBLIC: Set the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

Association

public Association()
Default constructor.


Association

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

Method Detail

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