Class StandardArraySemantics<E>
java.lang.Object
org.hibernate.collection.internal.StandardArraySemantics<E>
- All Implemented Interfaces:
CollectionSemantics<E[],
E>
CollectionSemantics implementation for arrays
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateInitializerProducer
(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 semanticsThe classification handled by this semanticThe collection's Java typegetElementIterator
(E[] rawCollection) Obtain an iterator over the collection elementsE[]
instantiateRaw
(int anticipatedSize, CollectionPersister collectionDescriptor) Create a raw (unwrapped) version of the collectioninstantiateWrapper
(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session) Create a wrapper for the collectionvoid
visitElements
(E[] array, Consumer<? super E> action) Visit the elements of the collectionwrap
(E[] rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session) Wrap a raw collection in wrapperMethods 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 Details
-
INSTANCE
Singleton access
-
-
Method Details
-
getCollectionClassification
Description copied from interface:CollectionSemantics
The classification handled by this semantic- Specified by:
getCollectionClassification
in interfaceCollectionSemantics<E[],
E>
-
getCollectionJavaType
Description copied from interface:CollectionSemantics
The collection's Java type- Specified by:
getCollectionJavaType
in interfaceCollectionSemantics<E[],
E>
-
instantiateRaw
Description copied from interface:CollectionSemantics
Create a raw (unwrapped) version of the collection- Specified by:
instantiateRaw
in interfaceCollectionSemantics<E[],
E>
-
getElementIterator
Description copied from interface:CollectionSemantics
Obtain an iterator over the collection elements- Specified by:
getElementIterator
in interfaceCollectionSemantics<E[],
E>
-
visitElements
Description copied from interface:CollectionSemantics
Visit the elements of the collection- Specified by:
visitElements
in interfaceCollectionSemantics<E[],
E>
-