Package org.hibernate.collection.spi
Class AbstractBagSemantics<E>
- java.lang.Object
-
- org.hibernate.collection.spi.AbstractBagSemantics<E>
-
- All Implemented Interfaces:
BagSemantics<Collection<E>,E>
,CollectionSemantics<Collection<E>,E>
- Direct Known Subclasses:
StandardBagSemantics
,StandardIdentifierBagSemantics
public abstract class AbstractBagSemantics<E> extends Object implements BagSemantics<Collection<E>,E>
-
-
Constructor Summary
Constructors Constructor Description AbstractBagSemantics()
-
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 semanticsClass<Collection>
getCollectionJavaType()
The collection's Java typeIterator<E>
getElementIterator(Collection<E> rawCollection)
Obtain an iterator over the collection elementsCollection<E>
instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)
Create a raw (unwrapped) version of the collectionvoid
visitElements(Collection<E> rawCollection, Consumer<? super E> action)
Visit the elements of the collection-
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, getCollectionClassification, instantiateWrapper, wrap
-
-
-
-
Method Detail
-
getCollectionJavaType
public Class<Collection> getCollectionJavaType()
Description copied from interface:CollectionSemantics
The collection's Java type- Specified by:
getCollectionJavaType
in interfaceCollectionSemantics<Collection<E>,E>
-
instantiateRaw
public Collection<E> instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)
Description copied from interface:CollectionSemantics
Create a raw (unwrapped) version of the collection- Specified by:
instantiateRaw
in interfaceCollectionSemantics<Collection<E>,E>
-
getElementIterator
public Iterator<E> getElementIterator(Collection<E> rawCollection)
Description copied from interface:CollectionSemantics
Obtain an iterator over the collection elements- Specified by:
getElementIterator
in interfaceCollectionSemantics<Collection<E>,E>
-
visitElements
public void visitElements(Collection<E> rawCollection, Consumer<? super E> action)
Description copied from interface:CollectionSemantics
Visit the elements of the collection- Specified by:
visitElements
in interfaceCollectionSemantics<Collection<E>,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<Collection<E>,E>
- See Also:
InitializerProducerBuilder
-
-