java.util.Map . Underlying collection
is a HashMap.
API Note
Incubating in terms of making this non-internal. These contracts will be getting cleaned up in following releases.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | PersistentMap.EntrySetProxy
a wrapper for Map.Entry sets |
| pack-priv class | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| protected Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PersistentMap(SharedSessionContractImplementor
The session to which this map will belong. session)Instantiates a lazy map (the underlying map is un-initialized). |
| public | PersistentMap(SharedSessionContractImplementor
The session to which this map will belong. session, Map<K, E> The underlying map data. map)Instantiates a non-lazy map (the underlying map is constructed from the incoming map reference). |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements java. |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
| public Object | disassemble(CollectionPersister
The collection persister persister)Implements org. |
| public boolean | empty()
Implements abstract org. Implements org. |
| public Iterator | entries(CollectionPersister
The collection persister. persister)Implements org. |
| public boolean | entryExists(Object
The object to check if it exists as a collection element entry, int Unused i)Implements org. |
| public Set | entrySet()
Implements java. Set view of the mappings contained in this map.
|
| public boolean | equals(Object
object to be compared for equality with this map other)Overrides java. Implements java. |
| public boolean | equalsSnapshot(CollectionPersister
The collection persister persister)Implements org. |
| public E | get(Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
| public Iterator | getDeletes(CollectionPersister
The collection persister persister, boolean For indexed collections, tells whether the index is a formula (calculated value) mapping indexIsFormula)Implements org. |
| public Object | getElement(Object
The object instance for which to get the collection element instance. entry)Implements org. |
| public Object | getIndex(Object
The collection entry/element entry, int The assumed index i, CollectionPersister it was more elegant before we added this... persister)Implements org. |
| public Collection | getOrphans(Serializable
The snapshot state snapshot, String The name of the entity that are the elements of the collection entityName)Implements abstract org. Implements org. |
| public Serializable | getSnapshot(CollectionPersister
The collection persister persister)Implements org. |
| public Object | getSnapshotElement(Object
The entry entry, int The index i)Implements org. |
| public int | hashCode()
Overrides java. Implements java. |
| public void | |
| public void | initializeFromCache(CollectionPersister
The collection persister persister, Object The disassembled cached state disassembled, Object The collection owner owner)Implements org. |
| public void | injectLoadedState(PluralAttributeMapping attributeMapping, List<?> loadingState)
Implements org. |
| public boolean | |
| public boolean | isSnapshotEmpty(Serializable
The snapshot to check snapshot)Implements org. |
| public boolean | isWrapper(Object
The collection to check whether this is wrapping it collection)Implements org. |
| public Set | |
| public boolean | needsInserting(Object
The collection element to check entry, int The index (for indexed collections) i, Type The type for the element elemType)Implements org. |
| public boolean | needsUpdating(Object
The collection element to check entry, int The index (for indexed collections) i, Type The type for the element elemType)Implements org. |
| public E | put(K
key with which the specified value is to be associated key, E value to be associated with the specified key value)Implements java. |
| public void | putAll(Map<? extends K, ? extends E>
mappings to be stored in this map puts)Implements java. |
| public E | remove(Object
key whose mapping is to be removed from the map key)Implements java. |
| public int | |
| public String | |
| public Collection | values()
Implements java. Collection view of the values contained in this map.
|