Package org.hibernate.collection.spi
Class AbstractSetSemantics<SE extends Set<E>,E>
- java.lang.Object
-
- org.hibernate.collection.spi.AbstractSetSemantics<SE,E>
-
- All Implemented Interfaces:
CollectionSemantics<SE,E>
- Direct Known Subclasses:
StandardOrderedSetSemantics
,StandardSetSemantics
,StandardSortedSetSemantics
public abstract class AbstractSetSemantics<SE extends Set<E>,E> extends Object implements CollectionSemantics<SE,E>
-
-
Constructor Summary
Constructors Constructor Description AbstractSetSemantics()
-
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<? extends Set>
getCollectionJavaType()
The collection's Java typeIterator<E>
getElementIterator(SE rawCollection)
Obtain an iterator over the collection elementsvoid
visitElements(SE 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, instantiateRaw, instantiateWrapper, wrap
-
-
-
-
Method Detail
-
getCollectionJavaType
public Class<? extends Set> getCollectionJavaType()
Description copied from interface:CollectionSemantics
The collection's Java type- Specified by:
getCollectionJavaType
in interfaceCollectionSemantics<SE extends Set<E>,E>
-
getElementIterator
public Iterator<E> getElementIterator(SE rawCollection)
Description copied from interface:CollectionSemantics
Obtain an iterator over the collection elements- Specified by:
getElementIterator
in interfaceCollectionSemantics<SE extends Set<E>,E>
-
visitElements
public void visitElements(SE rawCollection, Consumer<? super E> action)
Description copied from interface:CollectionSemantics
Visit the elements of the collection- Specified by:
visitElements
in interfaceCollectionSemantics<SE extends Set<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<SE extends Set<E>,E>
- See Also:
InitializerProducerBuilder
-
-