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 TypeMethodDescriptionintcollectionSize(Object rawCollection) Determine the size of the given raw collection.copy(Object rawCollection, CollectionPersister collectionDescriptor) Create a raw (unwrapped) copy of the given collection.Set<?> copyPart(Object rawCollection, CollectionPersister collectionDescriptor, CollectionPart.Nature partNature) Create a detached copy of a collection part.createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState) Create a producer forCollectionInitializerinstances for the given collection semanticsThe collection's Java typegetElementIterator(MKV rawMap) Obtain an iterator over the collection elementsgetKeyIterator(MKV rawMap) <X> Collection<X> instantiateWithElements(int anticipatedSize, CollectionPersister collectionDescriptor, Collection<? extends X> elements) Create a raw (unwrapped) version of the collection and populate it with the given elements.voidvisitElements(MKV rawMap, Consumer<? super V> action) Visit the elements of the collectionvoidvisitEntries(MKV rawMap, BiConsumer<? super K, ? super V> action) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CollectionSemantics
createInitializerProducer, getCollectionClassification, instantiateRaw, instantiateWrapper, wrapMethods inherited from interface MapSemantics
instantiateWithElements
-
Constructor Details
-
AbstractMapSemantics
public AbstractMapSemantics()
-
-
Method Details
-
instantiateWithElements
public <X> Collection<X> instantiateWithElements(int anticipatedSize, CollectionPersister collectionDescriptor, Collection<? extends X> elements) Description copied from interface:CollectionSemanticsCreate a raw (unwrapped) version of the collection and populate it with the given elements.- Specified by:
instantiateWithElementsin interfaceCollectionSemantics<MKV extends Map<K,V>, K>
-
collectionSize
Description copied from interface:CollectionSemanticsDetermine the size of the given raw collection.- Specified by:
collectionSizein interfaceCollectionSemantics<MKV extends Map<K,V>, K>
-
copy
Description copied from interface:CollectionSemanticsCreate a raw (unwrapped) copy of the given collection. -
copyPart
public Set<?> copyPart(Object rawCollection, CollectionPersister collectionDescriptor, CollectionPart.Nature partNature) Description copied from interface:CollectionSemanticsCreate a detached copy of a collection part. -
getCollectionJavaType
Description copied from interface:CollectionSemanticsThe collection's Java type- Specified by:
getCollectionJavaTypein interfaceCollectionSemantics<MKV extends Map<K,V>, K>
-
getKeyIterator
-
visitKeys
-
visitEntries
- Specified by:
visitEntriesin interfaceMapSemantics<MKV extends Map<K,V>, K, V>
-
getElementIterator
Description copied from interface:CollectionSemanticsObtain an iterator over the collection elements- Specified by:
getElementIteratorin interfaceCollectionSemantics<MKV extends Map<K,V>, K>
-
visitElements
Description copied from interface:CollectionSemanticsVisit the elements of the collection- Specified by:
visitElementsin interfaceCollectionSemantics<MKV extends Map<K,V>, K>
-