To use an IndirectMap:
org.eclipse.persistence.mappings.CollectionMapping , org.eclipse.persistence.indirection.IndirectList
| Modifier and Type | Field and Description |
|---|---|
| private transient String | attributeName
The mapping attribute name, used to raise change events. |
| private transient PropertyChangeListener | changeListener
Change tracking listener. |
| protected volatile Hashtable | delegate
Reduce type casting |
| protected int | initialCapacity
Store initial size for lazy init. |
| protected float | loadFactor
Store load factor for lazy init.
|
| protected volatile ValueHolderInterface | valueHolder
Delegate indirection behavior to a value holder |
| Access | Constructor and Description |
|---|---|
| public | |
| public | IndirectMap(int
the initial capacity of the hashtable initialCapacity)PUBLIC: Construct a new, empty IndirectMap with the specified initial capacity and default load factor. |
| public | IndirectMap(int
the initial capacity of the hashtable initialCapacity, float a number between 0.0 and 1.0 loadFactor)PUBLIC: Construct a new, empty IndirectMap with the specified initial capacity and load factor. |
| public | IndirectMap(Map<? extends K, ? extends V>
a map containing the mappings to use m)PUBLIC: Construct a new IndirectMap with the same mappings as the given Map. |
| Modifier and Type | Method and Description |
|---|---|
| public PropertyChangeListener | _persistence_getPropertyChangeListener()
Implements org. |
| public void | _persistence_setPropertyChangeListener(PropertyChangeListener changeListener)
Implements org. |
| protected Hashtable | |
| public synchronized void | clear()
Overrides java. Implements java. |
| public void | clearDeferredChanges()
Implements org. |
| public synchronized Object | |
| public synchronized V | compute(K
key with which the specified value is to be associated key, BiFunction<? super K, ? super V, ? extends V> the remapping function to compute a value remappingFunction)Overrides java. Overrides default java. null if there is no current mapping).
|
| public synchronized V | computeIfAbsent(K
key with which the specified value is to be associated key, Function<? super K, ? extends V> the mapping function to compute a value mappingFunction)Overrides java. Overrides default java. null), attempts to compute its value using the given mapping
function and enters it into this map unless null.
|
| public synchronized V | computeIfPresent(K
key with which the specified value is to be associated key, BiFunction<? super K, ? super V, ? extends V> the remapping function to compute a value remappingFunction)Overrides java. Overrides default java. |
| public synchronized boolean | contains(Object
a value to search for value)Overrides java. |
| public synchronized boolean | containsKey(Object
possible key key)Overrides java. Implements java. |
| public boolean | containsValue(Object
value whose presence in this hashtable is to be tested value)Overrides java. Implements java. |
| public synchronized Enumeration | elements()
Overrides java. |
| public Set | entrySet()
Overrides java. Implements java. Set view of the mappings contained in this map.
|
| public synchronized boolean | equals(Object
object to be compared for equality with this hashtable o)Overrides java. Implements java. |
| public synchronized void | forEach(BiConsumer<? super K, ? super V>
The action to be performed for each entry action)Overrides java. Overrides default java. |
| public synchronized V | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| public Collection | getAddedElements()
Implements org. |
| protected Hashtable | |
| public Map | getDelegateObject()
Implements org. |
| public synchronized V | getOrDefault(Object
the key whose associated value is to be returned key, V the default mapping of the key defaultValue)Overrides java. Overrides default java. defaultValue if this map contains no mapping for the key.
|
| public Collection | getRemovedElements()
Implements org. |
| public String | getTrackedAttributeName()
Implements org. |
| public ValueHolderInterface | getValueHolder()
Implements org. |
| public boolean | hasDeferredChanges()
Implements org. |
| public synchronized int | hashCode()
Overrides java. Implements java. |
| public boolean | hasTrackedPropertyChangeListener()
INTERNAL: Return if the collection has a property change listener for change tracking. |
| protected void | |
| protected void | |
| public boolean | isEmpty()
Overrides java. Implements java. |
| public boolean | isInstantiated()
Implements org. |
| public synchronized Enumeration | |
| public Set | keySet()
Overrides java. Implements java. Set view of the keys contained in this map.
|
| public synchronized V | merge(K
key with which the resulting value is to be associated key, V the non-null value to be merged with the existing value
associated with the key or, if no existing value or a null value
is associated with the key, to be associated with the key value, BiFunction<? super V, ? super V, ? extends V> the remapping function to recompute a value if
present remappingFunction)Overrides java. Overrides default java. |
| public synchronized V | put(K
the hashtable key key, V the value value)Overrides java. Implements java. key to the specified
value in this hashtable.
|
| public synchronized void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map t)Overrides java. Implements java. |
| public synchronized V | putIfAbsent(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides java. Overrides default java. null) associates it with the given value and returns
null, else returns the current value.
|
| protected void | raiseAddChangeEvent(Object key, Object value)
Raise the add change event and relationship maintainence. |
| protected void | |
| protected void | rehash()
Overrides java. |
| public synchronized boolean | remove(Object
key with which the specified value is associated key, Object value expected to be associated with the specified key value)Overrides java. Overrides default java. |
| public synchronized V | remove(Object
the key that needs to be removed key)Overrides java. Implements java. |
| public synchronized V | replace(K
key with which the specified value is associated key, V value to be associated with the specified key value)Overrides java. Overrides default java. |
| public synchronized boolean | replace(K
key with which the specified value is associated key, V value expected to be associated with the specified key oldValue, V value to be associated with the specified key newValue)Overrides java. Overrides default java. |
| public synchronized void | replaceAll(BiFunction<? super K, ? super V, ? extends V>
the function to apply to each entry function)Overrides java. Overrides default java. |
| public void | setTrackedAttributeName(String attributeName)
Implements org. |
| public void | setUseLazyInstantiation(boolean useLazyInstantiation)
Implements org. |
| public void | setValueHolder(ValueHolderInterface<Map<K, V>> valueHolder)
Implements org. |
| public int | size()
Overrides java. Implements java. |
| public String | toString()
Overrides java. |
| public Collection | values()
Overrides java. Implements java. Collection view of the values contained in this map.
|