Top Constructors Methods
org.hibernate.collection.spi

public abstract Class AbstractBagSemantics<E>

extends Object
implements BagSemantics<Collection<E>, E>
Class Inheritance
All Implemented Interfaces
org.hibernate.collection.spi.BagSemantics, org.hibernate.collection.spi.CollectionSemantics
Known Direct Subclasses
org.hibernate.collection.internal.StandardBagSemantics, org.hibernate.collection.internal.StandardIdentifierBagSemantics
Imports
java.util.ArrayList, .Collection, .Iterator, java.util.function.Consumer, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.metamodel.mapping.PluralAttributeMapping, org.hibernate.persister.collection.CollectionPersister, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.Fetch, .DomainResultCreationState, .FetchParent

Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CollectionInitializerProducer
createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)

Overrides default org.hibernate.collection.spi.CollectionSemantics.createInitializerProducer.

Create a producer for org.hibernate.sql.results.graph.collection.CollectionInitializer instances for the given collection semantics
public Class<Collection<E>>
public Iterator<E>
getElementIterator(Collection<E> rawCollection)

Implements org.hibernate.collection.spi.CollectionSemantics.getElementIterator.

Obtain an iterator over the collection elements
public Collection<E>
instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)

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

Create a raw (unwrapped) version of the collection
public void
visitElements(Collection<E> rawCollection, Consumer<? super E> action)

Implements org.hibernate.collection.spi.CollectionSemantics.visitElements.

Visit the elements of the collection
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractBagSemanticsback to summary
public AbstractBagSemantics()

Method Detail

createInitializerProducerback to summary
public CollectionInitializerProducer createInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)

Overrides default org.hibernate.collection.spi.CollectionSemantics.createInitializerProducer.

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

Create a producer for org.hibernate.sql.results.graph.collection.CollectionInitializer instances for the given collection semantics

Annotations
@Override
getCollectionJavaTypeback to summary
public Class<Collection<E>> getCollectionJavaType()

Implements org.hibernate.collection.spi.CollectionSemantics.getCollectionJavaType.

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

The collection's Java type

Annotations
@Override
getElementIteratorback to summary
public Iterator<E> getElementIterator(Collection<E> rawCollection)

Implements org.hibernate.collection.spi.CollectionSemantics.getElementIterator.

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

Obtain an iterator over the collection elements

Annotations
@Override
instantiateRawback to summary
public Collection<E> 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
visitElementsback to summary
public void visitElements(Collection<E> rawCollection, Consumer<? super E> action)

Implements org.hibernate.collection.spi.CollectionSemantics.visitElements.

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

Visit the elements of the collection

Annotations
@Override