|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.util.Dictionary
java.util.Hashtable
oracle.toplink.indirection.IndirectMap
IndirectMap allows a domain class to take advantage of TopLink indirection without having to declare its instance variable as a ValueHolderInterface.
To use an IndirectMap:
TopLink will place an IndirectMap in the instance variable when the containing domain object is read from the datatabase. With the first message sent to the IndirectMap, the contents are fetched from the database and normal Hashtable/Map behavior is resumed.
CollectionMapping, IndirectList, Serialized Form| Constructor Summary | |
IndirectMap()PUBLIC: Construct a new, empty IndirectMap with a default capacity and load factor. |
|
IndirectMap(int initialCapacity)PUBLIC: Construct a new, empty IndirectMap with the specified initial capacity and default load factor. |
|
IndirectMap(int initialCapacity, float loadFactor)PUBLIC: Construct a new, empty IndirectMap with the specified initial capacity and load factor. |
|
IndirectMap(java.util.Map m)PUBLIC: Construct a new IndirectMap with the same mappings as the given Map. |
|
| Method Summary | |
void |
clear() |
java.lang.Object |
clone() |
boolean |
contains(java.lang.Object value) |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Enumeration |
elements() |
java.util.Set |
entrySet() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object key) |
java.lang.String |
getTopLinkAttributeName()Return the mapping attribute name, used to raise change events. |
java.beans.PropertyChangeListener |
getTopLinkPropertyChangeListener()Return the property change listener for change tracking. |
ValueHolderInterface |
getValueHolder()PUBLIC: Return the valueHolder. |
int |
hashCode() |
boolean |
hasTopLinkPropertyChangeListener()Return if the collection has a property change listener for change tracking. |
boolean |
isEmpty() |
boolean |
isInstantiated()PUBLIC: Return whether the contents have been read from the database. |
java.util.Enumeration |
keys() |
java.util.Set |
keySet() |
java.lang.Object |
put(java.lang.Object key, java.lang.Object value) |
void |
putAll(java.util.Map t) |
java.lang.Object |
remove(java.lang.Object key) |
void |
setTopLinkAttributeName(java.lang.String attributeName)Set the mapping attribute name, used to raise change events. |
void |
setTopLinkPropertyChangeListener(java.beans.PropertyChangeListener changeListener)Set the property change listener for change tracking. |
void |
setValueHolder(ValueHolderInterface valueHolder)PUBLIC: Set the value holder. |
int |
size() |
java.lang.String |
toString()PUBLIC: Use the Hashtable.toString(); but wrap it with braces to indicate there is a bit of indirection. |
java.util.Collection |
values() |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IndirectMap()
public IndirectMap(int initialCapacity)
initialCapacity - the initial capacity of the hashtable
public IndirectMap(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity of the hashtableloadFactor - a number between 0.0 and 1.0java.lang.IllegalArgumentException - if the initial capacity is less than or equal to zero, or if the load factor is less than or equal to zeropublic IndirectMap(java.util.Map m)
m - a map containing the mappings to use| Method Detail |
public void clear()
clear in interface java.util.MapHashtable.clear()public java.lang.Object clone()
This will result in a database query if necessary.public boolean contains(java.lang.Object value)
Hashtable.contains(java.lang.Object)public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.MapHashtable.containsKey(java.lang.Object)public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.MapHashtable.containsValue(java.lang.Object)public java.util.Enumeration elements()
Hashtable.elements()public java.util.Set entrySet()
entrySet in interface java.util.MapHashtable.entrySet()public boolean equals(java.lang.Object o)
equals in interface java.util.MapHashtable.equals(java.lang.Object)public java.lang.Object get(java.lang.Object key)
get in interface java.util.MapHashtable.get(java.lang.Object)public java.lang.String getTopLinkAttributeName()
getTopLinkAttributeName in interface CollectionChangeTrackerpublic java.beans.PropertyChangeListener getTopLinkPropertyChangeListener()
getTopLinkPropertyChangeListener in interface ChangeTrackerpublic ValueHolderInterface getValueHolder()
getValueHolder in interface IndirectContainerpublic int hashCode()
hashCode in interface java.util.MapHashtable.hashCode()public boolean hasTopLinkPropertyChangeListener()
public boolean isEmpty()
isEmpty in interface java.util.MapHashtable.isEmpty()public boolean isInstantiated()
isInstantiated in interface IndirectContainerpublic java.util.Enumeration keys()
Hashtable.keys()public java.util.Set keySet()
keySet in interface java.util.MapHashtable.keySet()
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.MapHashtable.put(java.lang.Object, java.lang.Object)public void putAll(java.util.Map t)
putAll in interface java.util.MapHashtable.putAll(java.util.Map)public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.MapHashtable.remove(java.lang.Object)public void setTopLinkAttributeName(java.lang.String attributeName)
setTopLinkAttributeName in interface CollectionChangeTrackerpublic void setTopLinkPropertyChangeListener(java.beans.PropertyChangeListener changeListener)
setTopLinkPropertyChangeListener in interface ChangeTrackerpublic void setValueHolder(ValueHolderInterface valueHolder)
setValueHolder in interface IndirectContainerpublic int size()
size in interface java.util.MapHashtable.size()public java.lang.String toString()
Hashtable.toString()public java.util.Collection values()
values in interface java.util.MapHashtable.values()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||