public class IndirectMap extends Hashtable implements CollectionChangeTracker, IndirectCollection
To use an IndirectMap:
CollectionMapping,
IndirectList,
Serialized Form| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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.0IllegalArgumentException - 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 usepublic void clear()
clear in interface Mapclear in class HashtableHashtable.clear()public Object clone()
clone in class HashtableThis will result in a database query if necessary.public boolean contains(Object value)
contains in class HashtableHashtable.contains(java.lang.Object)public boolean containsKey(Object key)
containsKey in interface MapcontainsKey in class HashtableHashtable.containsKey(java.lang.Object)public boolean containsValue(Object value)
containsValue in interface MapcontainsValue in class HashtableHashtable.containsValue(java.lang.Object)public Enumeration elements()
elements in class HashtableHashtable.elements()public Set entrySet()
entrySet in interface MapentrySet in class HashtableHashtable.entrySet()public boolean equals(Object o)
equals in interface Mapequals in class HashtableHashtable.equals(java.lang.Object)public Object get(Object key)
get in interface Mapget in class HashtableHashtable.get(java.lang.Object)public Object getDelegateObject()
getDelegateObject in interface IndirectCollectionpublic String getTrackedAttributeName()
getTrackedAttributeName in interface CollectionChangeTrackerpublic PropertyChangeListener _persistence_getPropertyChangeListener()
_persistence_getPropertyChangeListener in interface ChangeTrackerpublic ValueHolderInterface getValueHolder()
getValueHolder in interface IndirectContainerpublic int hashCode()
hashCode in interface MaphashCode in class HashtableHashtable.hashCode()public boolean hasTrackedPropertyChangeListener()
public boolean isEmpty()
isEmpty in interface MapisEmpty in class HashtableHashtable.isEmpty()public boolean isInstantiated()
isInstantiated in interface IndirectContainerpublic Enumeration keys()
keys in class HashtableHashtable.keys()public Set keySet()
keySet in interface MapkeySet in class HashtableHashtable.keySet()public Object put(Object key, Object value)
put in interface Mapput in class HashtableHashtable.put(java.lang.Object, java.lang.Object)public void putAll(Map t)
putAll in interface MapputAll in class HashtableHashtable.putAll(java.util.Map)public Object remove(Object key)
remove in interface Mapremove in class HashtableHashtable.remove(java.lang.Object)public void setTrackedAttributeName(String attributeName)
setTrackedAttributeName in interface CollectionChangeTrackerpublic void _persistence_setPropertyChangeListener(PropertyChangeListener changeListener)
_persistence_setPropertyChangeListener in interface ChangeTrackerpublic void setValueHolder(ValueHolderInterface valueHolder)
setValueHolder in interface IndirectContainerpublic int size()
size in interface Mapsize in class HashtableHashtable.size()public Collection getRemovedElements()
getRemovedElements in interface IndirectCollectionpublic Collection getAddedElements()
getAddedElements in interface IndirectCollectionpublic boolean hasDeferredChanges()
hasDeferredChanges in interface IndirectCollectionpublic String toString()
toString in class HashtableHashtable.toString()public Collection values()
values in interface Mapvalues in class HashtableHashtable.values()