Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


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:
java.util.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

Field Summary
protected  java.lang.Class keyType
           
protected  java.lang.Class valueType
           

 

Fields inherited from class org.eclipse.persistence.mappings.Association
key, value

 

Constructor Summary
TypedAssociation()
          Default constructor.
TypedAssociation(java.lang.Object key, java.lang.Object value)
          PUBLIC: Create an association.

 

Method Summary
 java.lang.Class getKeyType()
          PUBLIC: Return the class of the key.
 java.lang.Class getValueType()
          PUBLIC: Return the class of the value.
 void postBuild(DescriptorEvent event)
          INTERNAL: Handler for the descriptor post build event.
 void setKeyType(java.lang.Class keyType)
          PUBLIC: Set the class of the key.
 void setValueType(java.lang.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface java.util.Map.Entry
equals, hashCode

 

Field Detail

keyType

protected java.lang.Class keyType

valueType

protected java.lang.Class valueType

Constructor Detail

TypedAssociation

public TypedAssociation()
Default constructor.

TypedAssociation

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

Method Detail

getKeyType

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

getValueType

public java.lang.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(java.lang.Class keyType)
PUBLIC: Set the class of the key.

setValueType

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

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.