|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable
org.eclipse.persistence.indirection.IndirectMap
public class 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:
CollectionMapping
,
IndirectList
,
Serialized FormConstructor 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(Map m)
PUBLIC: Construct a new IndirectMap with the same mappings as the given Map. |
Method Summary | |
---|---|
PropertyChangeListener |
_persistence_getPropertyChangeListener()
Return the property change listener for change tracking. |
void |
_persistence_setPropertyChangeListener(PropertyChangeListener changeListener)
INTERNAL: Set the property change listener for change tracking. |
void |
clear()
|
Object |
clone()
|
boolean |
contains(Object value)
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Enumeration |
elements()
|
Set |
entrySet()
|
boolean |
equals(Object o)
|
Object |
get(Object key)
|
Collection |
getAddedElements()
INTERNAL: Return the elements that have been added before instantiation. |
Object |
getDelegateObject()
INTERNAL: Return the real collection object. |
Collection |
getRemovedElements()
INTERNAL: Return the elements that have been removed before instantiation. |
String |
getTrackedAttributeName()
INTERNAL: Return the mapping attribute name, used to raise change events. |
ValueHolderInterface |
getValueHolder()
PUBLIC: Return the valueHolder. |
boolean |
hasDeferredChanges()
INTERNAL: Return if any elements that have been added or removed before instantiation. |
int |
hashCode()
|
boolean |
hasTrackedPropertyChangeListener()
INTERNAL: 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. |
Enumeration |
keys()
|
Set |
keySet()
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map t)
|
Object |
remove(Object key)
|
void |
setTrackedAttributeName(String attributeName)
INTERNAL: Set the mapping attribute name, used to raise change events. |
void |
setValueHolder(ValueHolderInterface valueHolder)
INTERNAL: Set the value holder. |
int |
size()
|
String |
toString()
PUBLIC: Use the Hashtable.toString(); but wrap it with braces to indicate there is a bit of indirection. |
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 hashtablepublic IndirectMap(int initialCapacity, float loadFactor)
initialCapacity
- the initial capacity of the hashtableloadFactor
- a number between 0.0 and 1.0
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(Map m)
m
- a map containing the mappings to useMethod Detail |
---|
public void clear()
clear
in interface Map
clear
in class Hashtable
Hashtable.clear()
public Object clone()
clone
in class Hashtable
This will result in a database query if necessary.
public boolean contains(Object value)
contains
in class Hashtable
Hashtable.contains(java.lang.Object)
public boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in class Hashtable
Hashtable.containsKey(java.lang.Object)
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in class Hashtable
Hashtable.containsValue(java.lang.Object)
public Enumeration elements()
elements
in class Hashtable
Hashtable.elements()
public Set entrySet()
entrySet
in interface Map
entrySet
in class Hashtable
Hashtable.entrySet()
public boolean equals(Object o)
equals
in interface Map
equals
in class Hashtable
Hashtable.equals(java.lang.Object)
public Object get(Object key)
get
in interface Map
get
in class Hashtable
Hashtable.get(java.lang.Object)
public Object getDelegateObject()
getDelegateObject
in interface IndirectCollection
public String getTrackedAttributeName()
getTrackedAttributeName
in interface CollectionChangeTracker
public PropertyChangeListener _persistence_getPropertyChangeListener()
_persistence_getPropertyChangeListener
in interface ChangeTracker
public ValueHolderInterface getValueHolder()
getValueHolder
in interface IndirectContainer
public int hashCode()
hashCode
in interface Map
hashCode
in class Hashtable
Hashtable.hashCode()
public boolean hasTrackedPropertyChangeListener()
public boolean isEmpty()
isEmpty
in interface Map
isEmpty
in class Hashtable
Hashtable.isEmpty()
public boolean isInstantiated()
isInstantiated
in interface IndirectContainer
public Enumeration keys()
keys
in class Hashtable
Hashtable.keys()
public Set keySet()
keySet
in interface Map
keySet
in class Hashtable
Hashtable.keySet()
public Object put(Object key, Object value)
put
in interface Map
put
in class Hashtable
Hashtable.put(java.lang.Object, java.lang.Object)
public void putAll(Map t)
putAll
in interface Map
putAll
in class Hashtable
Hashtable.putAll(java.util.Map)
public Object remove(Object key)
remove
in interface Map
remove
in class Hashtable
Hashtable.remove(java.lang.Object)
public void setTrackedAttributeName(String attributeName)
setTrackedAttributeName
in interface CollectionChangeTracker
public void _persistence_setPropertyChangeListener(PropertyChangeListener changeListener)
_persistence_setPropertyChangeListener
in interface ChangeTracker
public void setValueHolder(ValueHolderInterface valueHolder)
setValueHolder
in interface IndirectContainer
public int size()
size
in interface Map
size
in class Hashtable
Hashtable.size()
public Collection getRemovedElements()
getRemovedElements
in interface IndirectCollection
public Collection getAddedElements()
getAddedElements
in interface IndirectCollection
public boolean hasDeferredChanges()
hasDeferredChanges
in interface IndirectCollection
public String toString()
toString
in class Hashtable
Hashtable.toString()
public Collection values()
values
in interface Map
values
in class Hashtable
Hashtable.values()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |