Class StandardOrderedMapSemantics<K,V>
- java.lang.Object
-
- org.hibernate.collection.spi.AbstractMapSemantics<LinkedHashMap<K,V>,K,V>
-
- org.hibernate.collection.internal.StandardOrderedMapSemantics<K,V>
-
- All Implemented Interfaces:
CollectionSemantics<LinkedHashMap<K,V>,V>,MapSemantics<LinkedHashMap<K,V>,K,V>
public class StandardOrderedMapSemantics<K,V> extends AbstractMapSemantics<LinkedHashMap<K,V>,K,V>
-
-
Field Summary
Fields Modifier and Type Field Description static StandardOrderedMapSemantics<?,?>INSTANCESingleton access
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionClassificationgetCollectionClassification()The classification handled by this semanticIterator<V>getElementIterator(LinkedHashMap<K,V> rawCollection)Obtain an iterator over the collection elementsLinkedHashMap<K,V>instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)Create a raw (unwrapped) version of the collectionPersistentCollection<V>instantiateWrapper(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)Create a wrapper for the collectionPersistentCollection<V>wrap(LinkedHashMap<K,V> rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)Wrap a raw collection in wrapper-
Methods inherited from class org.hibernate.collection.spi.AbstractMapSemantics
createInitializerProducer, getCollectionJavaType, getKeyIterator, visitElements, visitEntries, visitKeys
-
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
-
-
-
-
Field Detail
-
INSTANCE
public static final StandardOrderedMapSemantics<?,?> INSTANCE
Singleton access
-
-
Method Detail
-
getCollectionClassification
public CollectionClassification getCollectionClassification()
Description copied from interface:CollectionSemanticsThe classification handled by this semantic
-
instantiateRaw
public LinkedHashMap<K,V> instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)
Description copied from interface:CollectionSemanticsCreate a raw (unwrapped) version of the collection
-
instantiateWrapper
public PersistentCollection<V> instantiateWrapper(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)
Description copied from interface:CollectionSemanticsCreate a wrapper for the collection
-
wrap
public PersistentCollection<V> wrap(LinkedHashMap<K,V> rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)
Description copied from interface:CollectionSemanticsWrap a raw collection in wrapper
-
getElementIterator
public Iterator<V> getElementIterator(LinkedHashMap<K,V> rawCollection)
Description copied from interface:CollectionSemanticsObtain an iterator over the collection elements- Specified by:
getElementIteratorin interfaceCollectionSemantics<K,V>- Overrides:
getElementIteratorin classAbstractMapSemantics<LinkedHashMap<K,V>,K,V>
-
-