Class AbstractBagSemantics<E>
java.lang.Object
org.hibernate.collection.spi.AbstractBagSemantics<E>
- All Implemented Interfaces:
BagSemantics<Collection<E>, E>, CollectionSemantics<Collection<E>, E>
public abstract class AbstractBagSemantics<E>
extends Object
implements BagSemantics<Collection<E>, E>
-
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(Collection<E> rawCollection) Obtain an iterator over the collection elementsinstantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor) Create a raw (unwrapped) version of the collection<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(Collection<E> rawCollection, Consumer<? super E> action) Visit the elements of the collectionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CollectionSemantics
createInitializerProducer, getCollectionClassification, getCollectionMutationInterpreter, instantiateWithElements, instantiateWrapper, wrap
-
Constructor Details
-
AbstractBagSemantics
public AbstractBagSemantics()
-
-
Method Details
-
getCollectionJavaType
Description copied from interface:CollectionSemanticsThe collection's Java type- Specified by:
getCollectionJavaTypein interfaceCollectionSemantics<Collection<E>, E>
-
instantiateRaw
Description copied from interface:CollectionSemanticsCreate a raw (unwrapped) version of the collection- Specified by:
instantiateRawin interfaceCollectionSemantics<Collection<E>, E>
-
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<Collection<E>, E>
-
collectionSize
Description copied from interface:CollectionSemanticsDetermine the size of the given raw collection.- Specified by:
collectionSizein interfaceCollectionSemantics<Collection<E>, E>
-
copy
Description copied from interface:CollectionSemanticsCreate a raw (unwrapped) copy of the given collection.- Specified by:
copyin interfaceCollectionSemantics<Collection<E>, E>
-
copyPart
public Set<?> copyPart(Object rawCollection, CollectionPersister collectionDescriptor, CollectionPart.Nature partNature) Description copied from interface:CollectionSemanticsCreate a detached copy of a collection part.- Specified by:
copyPartin interfaceCollectionSemantics<Collection<E>, E>
-
getElementIterator
Description copied from interface:CollectionSemanticsObtain an iterator over the collection elements- Specified by:
getElementIteratorin interfaceCollectionSemantics<Collection<E>, E>
-
visitElements
Description copied from interface:CollectionSemanticsVisit the elements of the collection- Specified by:
visitElementsin interfaceCollectionSemantics<Collection<E>, E>
-