Interface CollectionInitializer<Data extends InitializerData>
-
- All Superinterfaces:
Initializer<Data>
,InitializerParent<Data>
- All Known Implementing Classes:
AbstractCollectionInitializer
,AbstractImmediateCollectionInitializer
,AbstractNonJoinCollectionInitializer
,ArrayInitializer
,BagInitializer
,DelayedCollectionInitializer
,ListInitializer
,MapInitializer
,SelectEagerCollectionInitializer
,SetInitializer
public interface CollectionInitializer<Data extends InitializerData> extends InitializerParent<Data>
Initializer implementation for initializing collections (plural attributes)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.sql.results.graph.Initializer
Initializer.State
-
-
Field Summary
-
Fields inherited from interface org.hibernate.sql.results.graph.Initializer
EMPTY_ARRAY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CollectionInitializer<?>
asCollectionInitializer()
A utility method to avoid casting explicitly to CollectionInitializer@Nullable PersistentCollection<?>
getCollectionInstance(Data data)
default @Nullable PersistentCollection<?>
getCollectionInstance(RowProcessingState rowProcessingState)
PluralAttributeMapping
getInitializedPart()
default CollectionPersister
getInitializingCollectionDescriptor()
default boolean
isCollectionInitializer()
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asEmbeddableInitializer, asEntityInitializer, endLoading, endLoading, findOwningEntityInitializer, finishUpRow, finishUpRow, getData, getNavigablePath, getParent, getResolvedInstance, getResolvedInstance, hasLazySubInitializers, initializeInstance, initializeInstance, initializeInstanceFromParent, initializeInstanceFromParent, isEager, isEmbeddableInitializer, isEntityInitializer, isLazyCapable, isPartOfKey, isResultInitializer, resolveFromPreviousRow, resolveFromPreviousRow, resolveInstance, resolveInstance, resolveInstance, resolveInstance, resolveKey, resolveKey, resolveState, resolveState, startLoading
-
-
-
-
Method Detail
-
getInitializedPart
PluralAttributeMapping getInitializedPart()
- Specified by:
getInitializedPart
in interfaceInitializer<Data extends InitializerData>
-
getInitializingCollectionDescriptor
default CollectionPersister getInitializingCollectionDescriptor()
-
getCollectionInstance
@Nullable PersistentCollection<?> getCollectionInstance(Data data)
-
getCollectionInstance
default @Nullable PersistentCollection<?> getCollectionInstance(RowProcessingState rowProcessingState)
-
isCollectionInitializer
default boolean isCollectionInitializer()
- Specified by:
isCollectionInitializer
in interfaceInitializer<Data extends InitializerData>
-
asCollectionInitializer
default CollectionInitializer<?> asCollectionInitializer()
Description copied from interface:Initializer
A utility method to avoid casting explicitly to CollectionInitializer- Specified by:
asCollectionInitializer
in interfaceInitializer<Data extends InitializerData>
- Returns:
- CollectionInitializer if this is an instance of CollectionInitializer otherwise
null
-
-