Class CustomCollectionTypeSemantics<CE,E>
- java.lang.Object
-
- org.hibernate.collection.internal.CustomCollectionTypeSemantics<CE,E>
-
- All Implemented Interfaces:
CollectionSemantics<CE,E>
public class CustomCollectionTypeSemantics<CE,E> extends Object implements CollectionSemantics<CE,E>
A collection semantics wrapper forCollectionType
.
-
-
Constructor Summary
Constructors Constructor Description CustomCollectionTypeSemantics(CollectionType collectionType)
-
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, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)
Create a producer forCollectionInitializer
instances for the given collection semanticsCollectionClassification
getCollectionClassification()
The classification handled by this semanticClass<?>
getCollectionJavaType()
The collection's Java typeCollectionType
getCollectionType()
Iterator<E>
getElementIterator(CE rawCollection)
Obtain an iterator over the collection elementsCE
instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)
Create a raw (unwrapped) version of the collectionPersistentCollection<E>
instantiateWrapper(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)
Create a wrapper for the collectionvoid
visitElements(CE rawCollection, Consumer<? super E> action)
Visit the elements of the collectionPersistentCollection<E>
wrap(CE rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)
Wrap a raw collection in wrapper-
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
-
-
-
-
Constructor Detail
-
CustomCollectionTypeSemantics
public CustomCollectionTypeSemantics(CollectionType collectionType)
-
-
Method Detail
-
getCollectionType
public CollectionType getCollectionType()
-
getCollectionClassification
public CollectionClassification getCollectionClassification()
Description copied from interface:CollectionSemantics
The classification handled by this semantic- Specified by:
getCollectionClassification
in interfaceCollectionSemantics<CE,E>
-
getCollectionJavaType
public Class<?> getCollectionJavaType()
Description copied from interface:CollectionSemantics
The collection's Java type- Specified by:
getCollectionJavaType
in interfaceCollectionSemantics<CE,E>
-
instantiateRaw
public CE instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)
Description copied from interface:CollectionSemantics
Create a raw (unwrapped) version of the collection- Specified by:
instantiateRaw
in interfaceCollectionSemantics<CE,E>
-
getElementIterator
public Iterator<E> getElementIterator(CE rawCollection)
Description copied from interface:CollectionSemantics
Obtain an iterator over the collection elements- Specified by:
getElementIterator
in interfaceCollectionSemantics<CE,E>
-
visitElements
public void visitElements(CE rawCollection, Consumer<? super E> action)
Description copied from interface:CollectionSemantics
Visit the elements of the collection- Specified by:
visitElements
in interfaceCollectionSemantics<CE,E>
-
createInitializerProducer
public CollectionInitializerProducer createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)
Description copied from interface:CollectionSemantics
Create a producer forCollectionInitializer
instances for the given collection semantics- Specified by:
createInitializerProducer
in interfaceCollectionSemantics<CE,E>
- See Also:
InitializerProducerBuilder
-
instantiateWrapper
public PersistentCollection<E> instantiateWrapper(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)
Description copied from interface:CollectionSemantics
Create a wrapper for the collection- Specified by:
instantiateWrapper
in interfaceCollectionSemantics<CE,E>
-
wrap
public PersistentCollection<E> wrap(CE rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)
Description copied from interface:CollectionSemantics
Wrap a raw collection in wrapper- Specified by:
wrap
in interfaceCollectionSemantics<CE,E>
-
-