Package org.eclipse.persistence.mappings
Class Association
- java.lang.Object
-
- org.eclipse.persistence.mappings.Association
-
- All Implemented Interfaces:
java.util.Map.Entry
- Direct Known Subclasses:
PropertyAssociation,TypedAssociation
public class Association extends java.lang.Object implements java.util.Map.EntryPurpose: Generic association object. This can be used to map hashtable/map containers where the key and value primitives or independent objects.
- Author:
- James Sutherland
- Since:
- TOPLink/Java 3.0
-
-
Constructor Summary
Constructors Constructor Description Association()Default constructor.Association(java.lang.Object key, java.lang.Object value)PUBLIC: Create an association.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetKey()PUBLIC: Return the key.java.lang.ObjectgetValue()PUBLIC: Return the value.voidsetKey(java.lang.Object key)PUBLIC: Set the key.java.lang.ObjectsetValue(java.lang.Object value)PUBLIC: Set the value.
-
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
PUBLIC: Return the key.- Specified by:
getKeyin interfacejava.util.Map.Entry
-
getValue
public java.lang.Object getValue()
PUBLIC: Return the value.- Specified by:
getValuein interfacejava.util.Map.Entry
-
setKey
public void setKey(java.lang.Object key)
PUBLIC: Set the key.
-
setValue
public java.lang.Object setValue(java.lang.Object value)
PUBLIC: Set the value.- Specified by:
setValuein interfacejava.util.Map.Entry
-
-