Top Description Fields Constructors Methods
org.eclipse.persistence.mappings

public Class Association

extends Object
implements Entry
Class Inheritance
All Implemented Interfaces
java.util.Map.Entry
Known Direct Subclasses
org.eclipse.persistence.mappings.PropertyAssociation, org.eclipse.persistence.mappings.TypedAssociation, org.eclipse.persistence.internal.descriptors.FieldTranslation, org.eclipse.persistence.internal.descriptors.QueryKeyReference
Imports
java.util.*

Purpose: 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

Field Summary

Modifier and TypeField and Description
protected Object
protected Object

Constructor Summary

AccessConstructor and Description
public
Association()

Default constructor.

public
Association(Object key, Object value)

PUBLIC: Create an association.

Method Summary

Modifier and TypeMethod and Description
public Object
getKey()

Implements java.util.Map.Entry.getKey.

PUBLIC: Return the key.
public Object
getValue()

Implements java.util.Map.Entry.getValue.

PUBLIC: Return the value.
public void
setKey(Object key)

PUBLIC: Set the key.

public Object
setValue(Object
new value to be stored in this entry
value
)

Implements java.util.Map.Entry.setValue.

PUBLIC: Set the value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
protected Object key
valueback to summary
protected Object value

Constructor Detail

Associationback to summary
public Association()

Default constructor.

Associationback to summary
public Association(Object key, Object value)

PUBLIC: Create an association.

Method Detail

getKeyback to summary
public Object getKey()

Implements java.util.Map.Entry.getKey.

PUBLIC: Return the key.

Returns:Object

Doc from java.util.Map.Entry.getKey.

the key corresponding to this entry

Annotations
@Override
getValueback to summary
public Object getValue()

Implements java.util.Map.Entry.getValue.

PUBLIC: Return the value.

Returns:Object

Doc from java.util.Map.Entry.getValue.

the value corresponding to this entry

Annotations
@Override
setKeyback to summary
public void setKey(Object key)

PUBLIC: Set the key.

setValueback to summary
public Object setValue(Object value)

Implements java.util.Map.Entry.setValue.

PUBLIC: Set the value.

Parameters
value:Object

Doc from java.util.Map.Entry.setValue.

new value to be stored in this entry

Returns:Object

Doc from java.util.Map.Entry.setValue.

old value corresponding to the entry

Annotations
@Override