Package org.hibernate.collection.spi
Class AbstractMapSemantics<MKV extends Map<K,V>,K,V>
java.lang.Object
org.hibernate.collection.spi.AbstractMapSemantics<MKV,K,V>
- All Implemented Interfaces:
CollectionSemantics<MKV,
,V> MapSemantics<MKV,
K, V>
public abstract class AbstractMapSemantics<MKV extends Map<K,V>,K,V>
extends Object
implements MapSemantics<MKV,K,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInitializerProducer
(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState) Create a producer forCollectionInitializer
instances for the given collection semanticsThe collection's Java typegetElementIterator
(MKV rawMap) Obtain an iterator over the collection elementsgetKeyIterator
(MKV rawMap) void
visitElements
(MKV rawMap, Consumer<? super V> action) Visit the elements of the collectionvoid
visitEntries
(MKV rawMap, BiConsumer<? super K, ? super V> action) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.collection.spi.CollectionSemantics
createInitializerProducer, getCollectionClassification, instantiateRaw, instantiateWrapper, wrap
-
Constructor Details
-
AbstractMapSemantics
public AbstractMapSemantics()
-
-
Method Details
-
getCollectionJavaType
Description copied from interface:CollectionSemantics
The collection's Java type- Specified by:
getCollectionJavaType
in interfaceCollectionSemantics<MKV extends Map<K,
V>, K>
-
getKeyIterator
- Specified by:
getKeyIterator
in interfaceMapSemantics<MKV extends Map<K,
V>, K, V>
-
visitKeys
-
visitEntries
- Specified by:
visitEntries
in interfaceMapSemantics<MKV extends Map<K,
V>, K, V>
-
getElementIterator
Description copied from interface:CollectionSemantics
Obtain an iterator over the collection elements- Specified by:
getElementIterator
in interfaceCollectionSemantics<MKV extends Map<K,
V>, K>
-
visitElements
Description copied from interface:CollectionSemantics
Visit the elements of the collection- Specified by:
visitElements
in interfaceCollectionSemantics<MKV extends Map<K,
V>, K>
-