Send the message #useTransparentMap(String) to the appropriate
CollectionMapping.

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.

IndirectMap

Construct a new, empty IndirectMap with the specified initial
capacity and load factor.

Parameters:

initialCapacity - the initial capacity of the hashtable

loadFactor - a number between 0.0 and 1.0

Throws:

java.lang.IllegalArgumentException - if the initial capacity is less
than or equal to zero, or if the load factor is less than
or equal to zero

IndirectMap

public IndirectMap(java.util.Map m)

Construct a new IndirectMap with the same mappings as the given Map.
The IndirectMap is created with a capacity of twice the number of entries
in the given Map or 11 (whichever is greater), and a default load factor, which is 0.75.

Parameters:

m - a map containing the mappings to use

Method Detail

clear

public void clear()

Specified by:

clear in interface java.util.Map

Overrides:

clear in class java.util.Hashtable

See Also:

Hashtable.clear()

clone

public java.lang.Object clone()

Overrides:

clone in class java.util.Hashtable

See Also:

This will result in a database query if necessary.

contains

public boolean contains(java.lang.Object value)

Overrides:

contains in class java.util.Hashtable

See Also:

Hashtable.contains(java.lang.Object)

containsKey

public boolean containsKey(java.lang.Object key)

Specified by:

containsKey in interface java.util.Map

Overrides:

containsKey in class java.util.Hashtable

See Also:

Hashtable.containsKey(java.lang.Object)

containsValue

public boolean containsValue(java.lang.Object value)

Specified by:

containsValue in interface java.util.Map

Overrides:

containsValue in class java.util.Hashtable

See Also:

Hashtable.containsValue(java.lang.Object)

elements

public java.util.Enumeration elements()

Overrides:

elements in class java.util.Hashtable

See Also:

Hashtable.elements()

entrySet

public java.util.Set entrySet()

Specified by:

entrySet in interface java.util.Map

Overrides:

entrySet in class java.util.Hashtable

See Also:

Hashtable.entrySet()

equals

public boolean equals(java.lang.Object o)

Specified by:

equals in interface java.util.Map

Overrides:

equals in class java.util.Hashtable

See Also:

Hashtable.equals(java.lang.Object)

get

public java.lang.Object get(java.lang.Object key)

Specified by:

get in interface java.util.Map

Overrides:

get in class java.util.Hashtable

See Also:

Hashtable.get(java.lang.Object)

_persistence_getPropertyChangeListener

public java.beans.PropertyChangeListener _persistence_getPropertyChangeListener()