- java.lang.Object
-
- org.eclipse.persistence.mappings.Association
-
- 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.
- Author:
- James Sutherland
- Since:
- TOPLink/Java 3.0
-
-
Constructor Summary
Constructors Constructor Description TypedAssociation()Default constructor.TypedAssociation(Object key, Object value)PUBLIC: Create an association.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getKeyType()PUBLIC: Return the class of the key.Class<?>getValueType()PUBLIC: Return the class of the value.voidpostBuild(DescriptorEvent event)INTERNAL: Handler for the descriptor post build event.voidsetKeyType(Class<?> keyType)PUBLIC: Set the class of the key.voidsetValueType(Class<?> valueType)PUBLIC: Set the class of the value.-
Methods inherited from class org.eclipse.persistence.mappings.Association
getKey, getValue, setKey, setValue
-
-
-
-
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.
-
-