Top Constructors Methods
org.hibernate.collection.spi

public abstract Class AbstractMapSemantics<MKV extends java.util.Map<K, V>, K, V>

extends Object
implements MapSemantics<MKV extends Map<K, V>, K, V>
Class Inheritance
All Implemented Interfaces
org.hibernate.collection.spi.MapSemantics, org.hibernate.collection.spi.CollectionSemantics
Known Direct Subclasses
org.hibernate.collection.internal.StandardMapSemantics, org.hibernate.collection.internal.StandardOrderedMapSemantics, org.hibernate.collection.internal.StandardSortedMapSemantics
Imports
java.util.Collections, .Iterator, .Map, java.util.function.BiConsumer, .Consumer, org.hibernate.metamodel.mapping.PluralAttributeMapping, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.Fetch, .DomainResultCreationState, .FetchParent

Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CollectionInitializerProducer
createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)

Overrides default org.hibernate.collection.spi.CollectionSemantics.createInitializerProducer.

Create a producer for org.hibernate.sql.results.graph.collection.CollectionInitializer instances for the given collection semantics
public Class<? extends Map<K, V>>
public Iterator<V>
getElementIterator(MKV rawMap)

Implements org.hibernate.collection.spi.CollectionSemantics.getElementIterator.

Obtain an iterator over the collection elements
public Iterator<K>
public void
visitElements(MKV rawMap, Consumer<? super V> action)

Implements org.hibernate.collection.spi.CollectionSemantics.visitElements.

Visit the elements of the collection
public void
visitEntries(MKV rawMap, BiConsumer<? super K, ? super V> action)

Implements org.hibernate.collection.spi.MapSemantics.visitEntries.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractMapSemanticsback to summary
public AbstractMapSemantics()

Method Detail

createInitializerProducerback to summary
public CollectionInitializerProducer createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)

Overrides default org.hibernate.collection.spi.CollectionSemantics.createInitializerProducer.

Doc from org.hibernate.collection.spi.CollectionSemantics.createInitializerProducer.

Create a producer for org.hibernate.sql.results.graph.collection.CollectionInitializer instances for the given collection semantics

Annotations
@Override
getCollectionJavaTypeback to summary
public Class<? extends Map<K, V>> getCollectionJavaType()

Implements org.hibernate.collection.spi.CollectionSemantics.getCollectionJavaType.

Doc from org.hibernate.collection.spi.CollectionSemantics.getCollectionJavaType.

The collection's Java type

Annotations
@Override
getElementIteratorback to summary
public Iterator<V> getElementIterator(MKV rawMap)

Implements org.hibernate.collection.spi.CollectionSemantics.getElementIterator.

Doc from org.hibernate.collection.spi.CollectionSemantics.getElementIterator.

Obtain an iterator over the collection elements

Annotations
@Override
getKeyIteratorback to summary
public Iterator<K> getKeyIterator(MKV rawMap)

Implements org.hibernate.collection.spi.MapSemantics.getKeyIterator.

Annotations
@Override
visitElementsback to summary
public void visitElements(MKV rawMap, Consumer<? super V> action)

Implements org.hibernate.collection.spi.CollectionSemantics.visitElements.

Doc from org.hibernate.collection.spi.CollectionSemantics.visitElements.

Visit the elements of the collection

Annotations
@Override
visitEntriesback to summary
public void visitEntries(MKV rawMap, BiConsumer<? super K, ? super V> action)

Implements org.hibernate.collection.spi.MapSemantics.visitEntries.

Annotations
@Override
visitKeysback to summary
public void visitKeys(MKV rawMap, Consumer<? super K> action)

Implements org.hibernate.collection.spi.MapSemantics.visitKeys.

Annotations
@Override