Interface EntityInitializer
-
- All Superinterfaces:
FetchParentAccess,Initializer
- All Known Implementing Classes:
AbstractEntityInitializer
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 FetchParentAccessfindFirstEntityDescriptorAccess()Find the first entity access up the fetch parent graphEntityPersistergetConcreteDescriptor()EntityPersistergetEntityDescriptor()Get the descriptor for the type of entity being initializedObjectgetEntityInstance()Get the entity instance for the currently processing "row".EntityKeygetEntityKey()default ObjectgetInitializedInstance()-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParentAccess
getNavigablePath, getParentKey, registerResolutionListener
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
endLoading, finishUpRow, getInitializedPart, initializeInstance, 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
-
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()
-
-