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 EntityInitializerasEntityInitializer()A utility method to avoid casting explicitly to EntityInitializerdefault FetchParentAccessfindFirstEntityDescriptorAccess()Find the first entity access up the fetch parent graphdefault EntityInitializerfindFirstEntityInitializer()EntityPersistergetConcreteDescriptor()EntityPersistergetEntityDescriptor()Get the descriptor for the type of entity being initializedObjectgetEntityInstance()Get the entity instance for the currently processing "row".EntityKeygetEntityKey()default ObjectgetInitializedInstance()booleanisEntityInitialized()default booleanisEntityInitializer()-
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:FetchParentAccessFind the first entity access up the fetch parent graph- Specified by:
findFirstEntityDescriptorAccessin interfaceFetchParentAccess
-
findFirstEntityInitializer
default EntityInitializer findFirstEntityInitializer()
- Specified by:
findFirstEntityInitializerin 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:
getInitializedInstancein interfaceInitializer
-
getEntityKey
EntityKey getEntityKey()
-
isEntityInitializer
default boolean isEntityInitializer()
- Specified by:
isEntityInitializerin interfaceInitializer
-
asEntityInitializer
default EntityInitializer asEntityInitializer()
Description copied from interface:InitializerA utility method to avoid casting explicitly to EntityInitializer- Specified by:
asEntityInitializerin 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
-
-