Interface EntityInitializer
-
- All Superinterfaces:
FetchParentAccess
,Initializer
- All Known Implementing Classes:
AbstractBatchEntitySelectFetchInitializer
,AbstractEntityInitializer
,BatchEntityInsideEmbeddableSelectFetchInitializer
,BatchEntitySelectFetchInitializer
,BatchInitializeEntitySelectFetchInitializer
,EntityDelayedFetchInitializer
,EntityJoinedFetchInitializer
,EntityResultInitializer
,EntitySelectFetchByUniqueKeyInitializer
,EntitySelectFetchInitializer
public interface EntityInitializer extends FetchParentAccess
Initializer implementation for initializing entity references.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EntityInitializer
asEntityInitializer()
A utility method to avoid casting explicitly to EntityInitializerdefault FetchParentAccess
findFirstEntityDescriptorAccess()
Find the first entity access up the fetch parent graphdefault EntityInitializer
findFirstEntityInitializer()
EntityPersister
getConcreteDescriptor()
EntityPersister
getEntityDescriptor()
Get the descriptor for the type of entity being initializedObject
getEntityInstance()
Get the entity instance for the currently processing "row".EntityKey
getEntityKey()
default Object
getInitializedInstance()
boolean
isEntityInitialized()
default boolean
isEntityInitializer()
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParentAccess
getFetchParentAccess, getNavigablePath, getParentKey, registerResolutionListener
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asEmbeddableInitializer, endLoading, finishUpRow, getInitializedPart, initializeInstance, isAttributeAssignableToConcreteDescriptor, isCollectionInitializer, isEmbeddableInitializer, resolveInstance, resolveKey
-
-
-
-
Method Detail
-
getEntityDescriptor
EntityPersister getEntityDescriptor()
Get the descriptor for the type of entity being initialized
-
getConcreteDescriptor
EntityPersister getConcreteDescriptor()
-
findFirstEntityDescriptorAccess
default FetchParentAccess findFirstEntityDescriptorAccess()
Description copied from interface:FetchParentAccess
Find the first entity access up the fetch parent graph- Specified by:
findFirstEntityDescriptorAccess
in interfaceFetchParentAccess
-
findFirstEntityInitializer
default EntityInitializer findFirstEntityInitializer()
- Specified by:
findFirstEntityInitializer
in interfaceFetchParentAccess
-
getEntityInstance
Object getEntityInstance()
Get the entity instance for the currently processing "row".- API Note:
- Calling this method is only valid from the time
Initializer.resolveKey(org.hibernate.sql.results.jdbc.spi.RowProcessingState)
has been called untilInitializer.finishUpRow(org.hibernate.sql.results.jdbc.spi.RowProcessingState)
has been called for the currently processing row
-
getInitializedInstance
default Object getInitializedInstance()
- Specified by:
getInitializedInstance
in interfaceInitializer
-
getEntityKey
EntityKey getEntityKey()
-
isEntityInitializer
default boolean isEntityInitializer()
- Specified by:
isEntityInitializer
in interfaceInitializer
-
asEntityInitializer
default EntityInitializer asEntityInitializer()
Description copied from interface:Initializer
A utility method to avoid casting explicitly to EntityInitializer- Specified by:
asEntityInitializer
in interfaceInitializer
- Returns:
- EntityInitializer if this is an instance of EntityInitializer otherwise
null
-
isEntityInitialized
boolean isEntityInitialized()
- Returns:
- true if the current entity associated to this EntityInitializer has been initialized
-
-