Interface EmbeddableInitializer<Data extends InitializerData>
-
- All Superinterfaces:
Initializer<Data>
,InitializerParent<Data>
- All Known Implementing Classes:
AggregateEmbeddableInitializerImpl
,EmbeddableInitializerImpl
,NonAggregatedIdentifierMappingInitializer
public interface EmbeddableInitializer<Data extends InitializerData> extends InitializerParent<Data>
Special initializer contract for embeddables
-
-
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 EmbeddableInitializer<?>
asEmbeddableInitializer()
A utility method to avoid casting explicitly to EmbeddableInitializerEmbeddableValuedModelPart
getInitializedPart()
@Nullable InitializerParent<?>
getParent()
Returns the parentInitializer
ornull
if this is a result initializer.default boolean
isEmbeddableInitializer()
void
resetResolvedEntityRegistrations(RowProcessingState rowProcessingState)
Resets the resolved entity registrations by i.e.-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asCollectionInitializer, asEntityInitializer, endLoading, endLoading, findOwningEntityInitializer, finishUpRow, finishUpRow, getData, getNavigablePath, getResolvedInstance, getResolvedInstance, hasLazySubInitializers, initializeInstance, initializeInstance, initializeInstanceFromParent, initializeInstanceFromParent, isCollectionInitializer, isEager, isEntityInitializer, isLazyCapable, isPartOfKey, isResultInitializer, resolveFromPreviousRow, resolveFromPreviousRow, resolveInstance, resolveInstance, resolveInstance, resolveInstance, resolveKey, resolveKey, resolveState, resolveState, startLoading
-
-
-
-
Method Detail
-
getInitializedPart
EmbeddableValuedModelPart getInitializedPart()
- Specified by:
getInitializedPart
in interfaceInitializer<Data extends InitializerData>
-
getParent
@Nullable InitializerParent<?> getParent()
Description copied from interface:Initializer
Returns the parentInitializer
ornull
if this is a result initializer.- Specified by:
getParent
in interfaceInitializer<Data extends InitializerData>
-
isEmbeddableInitializer
default boolean isEmbeddableInitializer()
- Specified by:
isEmbeddableInitializer
in interfaceInitializer<Data extends InitializerData>
-
asEmbeddableInitializer
default EmbeddableInitializer<?> asEmbeddableInitializer()
Description copied from interface:Initializer
A utility method to avoid casting explicitly to EmbeddableInitializer- Specified by:
asEmbeddableInitializer
in interfaceInitializer<Data extends InitializerData>
- Returns:
- EmbeddableInitializer if this is an instance of EmbeddableInitializer otherwise
null
-
resetResolvedEntityRegistrations
void resetResolvedEntityRegistrations(RowProcessingState rowProcessingState)
Resets the resolved entity registrations by i.e. removingEntityHolder
. This is used afterEntityInitializer.resolveEntityKeyOnly(RowProcessingState)
to deregister registrations for entities that were only resolved, but not initialized. Failing to do this will lead to errors, becausePersistenceContext.postLoad(JdbcValuesSourceProcessingState, Consumer)
is called, which expects all registrations to be fully initialized.
-
-