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.
| Modifier and Type | Field and Description |
|---|---|
protected Class |
keyType |
protected Class |
valueType |
key, value| Constructor and Description |
|---|
TypedAssociation()
Default constructor.
|
TypedAssociation(Object key,
Object value)
PUBLIC:
Create an association.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getKey, getValue, setKey, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodepublic Class getKeyType()
public Class getValueType()
public void postBuild(DescriptorEvent event)
public void setKeyType(Class keyType)
public void setValueType(Class valueType)
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.