Top Description Fields Constructors Methods
org.hibernate.collection.internal

public Class StandardMapSemantics<K, V>

extends AbstractMapSemantics<Map<K, V>, K, V>
Class Inheritance
Imports
java.util.Map, org.hibernate.collection.spi.AbstractMapSemantics, .PersistentCollection, .PersistentMap, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.metamodel.CollectionClassification, org.hibernate.persister.collection.CollectionPersister

CollectionSemantics for maps
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final StandardMapSemantics<?, ?>
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public CollectionClassification
public Map<K, V>
instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)

Implements org.hibernate.collection.spi.CollectionSemantics.instantiateRaw.

Create a raw (unwrapped) version of the collection
public PersistentCollection<V>
public PersistentCollection<V>
wrap(Map<K, V> rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)

Implements org.hibernate.collection.spi.CollectionSemantics.wrap.

Wrap a raw collection in wrapper
Inherited from org.hibernate.collection.spi.AbstractMapSemantics:
createInitializerProducergetCollectionJavaTypegetElementIteratorgetKeyIteratorvisitElementsvisitEntriesvisitKeys

Field Detail

INSTANCEback to summary
public static final StandardMapSemantics<?, ?> INSTANCE

Singleton access

Constructor Detail

StandardMapSemanticsback to summary
private StandardMapSemantics()

Method Detail

getCollectionClassificationback to summary
public CollectionClassification getCollectionClassification()

Implements org.hibernate.collection.spi.CollectionSemantics.getCollectionClassification.

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

The classification handled by this semantic

Annotations
@Override
instantiateRawback to summary
public Map<K, V> instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)

Implements org.hibernate.collection.spi.CollectionSemantics.instantiateRaw.

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

Create a raw (unwrapped) version of the collection

Annotations
@Override
instantiateWrapperback to summary
public PersistentCollection<V> instantiateWrapper(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)

Implements org.hibernate.collection.spi.CollectionSemantics.instantiateWrapper.

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

Create a wrapper for the collection

Annotations
@Override
wrapback to summary
public PersistentCollection<V> wrap(Map<K, V> rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)

Implements org.hibernate.collection.spi.CollectionSemantics.wrap.

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

Wrap a raw collection in wrapper

Annotations
@Override