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

B32476-03

oracle.toplink.mappings
Class TypedAssociation

java.lang.Object
  extended by oracle.toplink.mappings.Association
      extended by oracle.toplink.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

Constructor Summary
TypedAssociation()
          Default constructor.
TypedAssociation(java.lang.Object key, java.lang.Object value)
          Create an association.
 
Method Summary
 java.lang.Class getKeyType()
          Return the class of the key.
 java.lang.Class getValueType()
          Return the class of the value.
 void setKeyType(java.lang.Class keyType)
          Set the class of the key.
 void setValueType(java.lang.Class valueType)
          Set the class of the value.
 
Methods inherited from class oracle.toplink.mappings.Association
getKey, getValue, setKey, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

TypedAssociation

public TypedAssociation()
Default constructor.


TypedAssociation

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

Method Detail

getKeyType

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


getValueType

public java.lang.Class getValueType()
Return the class of the value.


setKeyType

public void setKeyType(java.lang.Class keyType)
Set the class of the key.


setValueType

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


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