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>
- Direct Known Subclasses:
StandardMapSemantics,StandardOrderedMapSemantics,StandardSortedMapSemantics
public abstract class AbstractMapSemantics<MKV extends Map<K,V>,K,V> extends Object implements MapSemantics<MKV,K,V>
-
-
Constructor Summary
Constructors Constructor Description AbstractMapSemantics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionInitializerProducercreateInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)Create a producer forCollectionInitializerinstances for the given collection semanticsClass<? extends Map>getCollectionJavaType()The collection's Java typeIterator<V>getElementIterator(MKV rawMap)Obtain an iterator over the collection elementsIterator<K>getKeyIterator(MKV rawMap)voidvisitElements(MKV rawMap, Consumer<? super V> action)Visit the elements of the collectionvoidvisitEntries(MKV rawMap, BiConsumer<? super K,? super V> action)voidvisitKeys(MKV rawMap, Consumer<? super K> action)-
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
-
-
-
-
Method Detail
-
getCollectionJavaType
public Class<? extends Map> getCollectionJavaType()
Description copied from interface:CollectionSemanticsThe collection's Java type- Specified by:
getCollectionJavaTypein interfaceCollectionSemantics<MKV extends Map<K,V>,K>
-
getKeyIterator
public Iterator<K> getKeyIterator(MKV rawMap)
- Specified by:
getKeyIteratorin interfaceMapSemantics<MKV extends Map<K,V>,K,V>
-
visitEntries
public void visitEntries(MKV rawMap, BiConsumer<? super K,? super V> action)
- Specified by:
visitEntriesin interfaceMapSemantics<MKV extends Map<K,V>,K,V>
-
getElementIterator
public Iterator<V> getElementIterator(MKV rawMap)
Description copied from interface:CollectionSemanticsObtain an iterator over the collection elements- Specified by:
getElementIteratorin interfaceCollectionSemantics<MKV extends Map<K,V>,K>
-
visitElements
public void visitElements(MKV rawMap, Consumer<? super V> action)
Description copied from interface:CollectionSemanticsVisit the elements of the collection- Specified by:
visitElementsin interfaceCollectionSemantics<MKV extends Map<K,V>,K>
-
createInitializerProducer
public CollectionInitializerProducer createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)
Description copied from interface:CollectionSemanticsCreate a producer forCollectionInitializerinstances for the given collection semantics- Specified by:
createInitializerProducerin interfaceCollectionSemantics<MKV extends Map<K,V>,K>- See Also:
InitializerProducerBuilder
-
-