org.eclipse.persistence.mappings
Class TypedAssociation

java.lang.Object
  extended by org.eclipse.persistence.mappings.Association
      extended by org.eclipse.persistence.mappings.TypedAssociation
All Implemented Interfaces:
Map.Entry

public class TypedAssociation
extends Association

Purpose: Generic association object. This can be used to map hashtable/map containers where the key and value are non-typed primitives.

Since:
TOPLink/Java 3.0
Author:
James Sutherland

Constructor Summary
TypedAssociation()
          Default constructor.
TypedAssociation(Object key, Object value)
          PUBLIC: Create an association.
 
Method Summary
 Class getKeyType()
          PUBLIC: Return the class of the key.
 Class getValueType()
          PUBLIC: Return the class of the value.
 void postBuild(DescriptorEvent event)
          INTERNAL: Handler for the descriptor post build event.
 void setKeyType(Class keyType)
          PUBLIC: Set the class of the key.
 void setValueType(Class valueType)
          PUBLIC: Set the class of the value.
 
Methods inherited from class org.eclipse.persistence.mappings.Association
getKey, getValue, setKey, setValue
 
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

TypedAssociation

public TypedAssociation()
Default constructor.


TypedAssociation

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

Method Detail

getKeyType

public Class getKeyType()
PUBLIC: Return the class of the key.


getValueType

public Class getValueType()
PUBLIC: Return the class of the value.


postBuild

public void postBuild(DescriptorEvent event)
INTERNAL: Handler for the descriptor post build event. Convert the key and values to their appropriate type.


setKeyType

public void setKeyType(Class keyType)
PUBLIC: Set the class of the key.


setValueType

public void setValueType(Class valueType)
PUBLIC: Set the class of the value.