Class StandardListSemantics<E>
- java.lang.Object
-
- org.hibernate.collection.internal.StandardListSemantics<E>
-
- All Implemented Interfaces:
CollectionSemantics<List<E>,E>
public class StandardListSemantics<E> extends Object implements CollectionSemantics<List<E>,E>
Hibernate's standard CollectionSemantics for Lists
-
-
Field Summary
Fields Modifier and Type Field Description static StandardListSemantics<?>INSTANCESingleton access
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionInitializerProducercreateInitializerProducer(NavigablePath navigablePath, PluralAttributeMapping attributeMapping, FetchParent fetchParent, boolean selected, String resultVariable, Fetch indexFetch, Fetch elementFetch, DomainResultCreationState creationState)Create a producer forCollectionInitializerinstances for the given collection semanticsCollectionClassificationgetCollectionClassification()The classification handled by this semanticClass<List>getCollectionJavaType()The collection's Java typeIterator<E>getElementIterator(List<E> rawCollection)Obtain an iterator over the collection elementsList<E>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 collectionvoidvisitElements(List<E> rawCollection, Consumer<? super E> action)Visit the elements of the collectionPersistentCollection<E>wrap(List<E> 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
-
-
-
-
Field Detail
-
INSTANCE
public static final StandardListSemantics<?> INSTANCE
Singleton access
-
-
Method Detail
-
getCollectionClassification
public CollectionClassification getCollectionClassification()
Description copied from interface:CollectionSemanticsThe classification handled by this semantic- Specified by:
getCollectionClassificationin interfaceCollectionSemantics<List<E>,E>
-
getCollectionJavaType
public Class<List> getCollectionJavaType()
Description copied from interface:CollectionSemanticsThe collection's Java type- Specified by:
getCollectionJavaTypein interfaceCollectionSemantics<List<E>,E>
-
instantiateRaw
public List<E> instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)
Description copied from interface:CollectionSemanticsCreate a raw (unwrapped) version of the collection- Specified by:
instantiateRawin interfaceCollectionSemantics<List<E>,E>
-
getElementIterator
public Iterator<E> getElementIterator(List<E> rawCollection)
Description copied from interface:CollectionSemanticsObtain an iterator over the collection elements- Specified by:
getElementIteratorin interfaceCollectionSemantics<List<E>,E>
-
visitElements
public void visitElements(List<E> rawCollection, Consumer<? super E> action)
Description copied from interface:CollectionSemanticsVisit the elements of the collection- Specified by:
visitElementsin interfaceCollectionSemantics<List<E>,E>
-
instantiateWrapper
public PersistentCollection<E> instantiateWrapper(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)
Description copied from interface:CollectionSemanticsCreate a wrapper for the collection- Specified by:
instantiateWrapperin interfaceCollectionSemantics<List<E>,E>
-
wrap
public PersistentCollection<E> wrap(List<E> rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)
Description copied from interface:CollectionSemanticsWrap a raw collection in wrapper- Specified by:
wrapin interfaceCollectionSemantics<List<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:CollectionSemanticsCreate a producer forCollectionInitializerinstances for the given collection semantics- Specified by:
createInitializerProducerin interfaceCollectionSemantics<List<E>,E>- See Also:
InitializerProducerBuilder
-
-