java.lang.Object
org.eclipse.persistence.mappings.Association
org.eclipse.persistence.mappings.TypedAssociation
- All Implemented Interfaces:
Map.Entry
- Direct Known Subclasses:
InteractionArgument
,QueryArgument
,TypeMapping
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
-
Field Summary
Fields inherited from class org.eclipse.persistence.mappings.Association
key, value
-
Constructor Summary
ConstructorDescriptionDefault constructor.TypedAssociation
(Object key, Object value) PUBLIC: Create an association. -
Method Summary
Modifier and TypeMethodDescriptionClass
<?> PUBLIC: Return the class of the key.Class
<?> 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
-
Field Details
-
keyType
-
valueType
-
-
Constructor Details
-
TypedAssociation
public TypedAssociation()Default constructor. -
TypedAssociation
PUBLIC: Create an association.
-
-
Method Details
-
getKeyType
PUBLIC: Return the class of the key. -
getValueType
PUBLIC: Return the class of the value. -
postBuild
INTERNAL: Handler for the descriptor post build event. Convert the key and values to their appropriate type. -
setKeyType
PUBLIC: Set the class of the key. -
setValueType
PUBLIC: Set the class of the value.
-