Class AbstractMapSemantics<MKV extends Map<K,V>,K,V>
- java.lang.Object
-
- org.hibernate.collection.internal.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 CollectionInitializerProducer
createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, DomainResultCreationState creationState)
todo (6.0) : clean this contract up!CollectionInitializerProducer
createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)
Class<? extends Map>
getCollectionJavaType()
Iterator<V>
getElementIterator(MKV rawMap)
Iterator<K>
getKeyIterator(MKV rawMap)
void
visitElements(MKV rawMap, Consumer<? super V> action)
void
visitEntries(MKV rawMap, BiConsumer<? super K,? super V> action)
void
visitKeys(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
getCollectionClassification, instantiateRaw, instantiateWrapper, wrap
-
-
-
-
Method Detail
-
getCollectionJavaType
public Class<? extends Map> getCollectionJavaType()
- Specified by:
getCollectionJavaType
in interfaceCollectionSemantics<MKV extends Map<K,V>,K>
-
getKeyIterator
public Iterator<K> getKeyIterator(MKV rawMap)
- Specified by:
getKeyIterator
in interfaceMapSemantics<MKV extends Map<K,V>,K,V>
-
visitEntries
public void visitEntries(MKV rawMap, BiConsumer<? super K,? super V> action)
- Specified by:
visitEntries
in interfaceMapSemantics<MKV extends Map<K,V>,K,V>
-
getElementIterator
public Iterator<V> getElementIterator(MKV rawMap)
- Specified by:
getElementIterator
in interfaceCollectionSemantics<MKV extends Map<K,V>,K>
-
visitElements
public void visitElements(MKV rawMap, Consumer<? super V> action)
- Specified by:
visitElements
in interfaceCollectionSemantics<MKV extends Map<K,V>,K>
-
createInitializerProducer
public CollectionInitializerProducer createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, DomainResultCreationState creationState)
Description copied from interface:CollectionSemantics
todo (6.0) : clean this contract up!- Specified by:
createInitializerProducer
in 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)
- Specified by:
createInitializerProducer
in interfaceCollectionSemantics<MKV extends Map<K,V>,K>
-
-