Top Description Methods
org.hibernate.sql.results.graph.entity

public Interface EntityInitializer

extends FetchParentAccess
Known Direct Implementers
org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer, org.hibernate.sql.results.graph.entity.internal.EntityDelayedFetchInitializer, org.hibernate.sql.results.graph.entity.internal.EntitySelectFetchInitializer, org.hibernate.sql.results.graph.entity.AbstractEntityInitializer
Imports
org.hibernate.engine.spi.EntityKey, org.hibernate.persister.entity.EntityPersister, org.hibernate.sql.results.graph.FetchParentAccess

Initializer implementation for initializing entity references.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default EntityInitializer
asEntityInitializer()

Overrides default org.hibernate.sql.results.graph.Initializer.asEntityInitializer.

A utility method to avoid casting explicitly to EntityInitializer
public default FetchParentAccess
public default EntityInitializer
public EntityPersister
public EntityPersister
getEntityDescriptor()

Get the descriptor for the type of entity being initialized

public Object
getEntityInstance()

Get the entity instance for the currently processing "row".

public EntityKey
public default Object
public boolean

Returns:

true if the current entity associated to this EntityInitializer has been initialized
isEntityInitialized
()

public default boolean
Inherited from org.hibernate.sql.results.graph.FetchParentAccess:
getFetchParentAccessgetNavigablePathgetParentKeyregisterResolutionListener

Method Detail

asEntityInitializerback to summary
public default EntityInitializer asEntityInitializer()

Overrides default org.hibernate.sql.results.graph.Initializer.asEntityInitializer.

Doc from org.hibernate.sql.results.graph.Initializer.asEntityInitializer.

A utility method to avoid casting explicitly to EntityInitializer

Returns:EntityInitializer

EntityInitializer if this is an instance of EntityInitializer otherwise null

Annotations
@Override
findFirstEntityDescriptorAccessback to summary
public default FetchParentAccess findFirstEntityDescriptorAccess()

Implements org.hibernate.sql.results.graph.FetchParentAccess.findFirstEntityDescriptorAccess.

Doc from org.hibernate.sql.results.graph.FetchParentAccess.findFirstEntityDescriptorAccess.

Find the first entity access up the fetch parent graph

Annotations
@Override
findFirstEntityInitializerback to summary
public default EntityInitializer findFirstEntityInitializer()

Overrides default org.hibernate.sql.results.graph.FetchParentAccess.findFirstEntityInitializer.

Annotations
@Override
getConcreteDescriptorback to summary
public EntityPersister getConcreteDescriptor()
getEntityDescriptorback to summary
public EntityPersister getEntityDescriptor()

Get the descriptor for the type of entity being initialized

getEntityInstanceback to summary
public Object getEntityInstance()

Get the entity instance for the currently processing "row".

API Note

Calling this method is only valid from the time resolveKey has been called until finishUpRow has been called for the currently processing row

getEntityKeyback to summary
public EntityKey getEntityKey()
getInitializedInstanceback to summary
public default Object getInitializedInstance()

Implements org.hibernate.sql.results.graph.Initializer.getInitializedInstance.

Annotations
@Override
isEntityInitializedback to summary
public boolean isEntityInitialized()
Returns:boolean

true if the current entity associated to this EntityInitializer has been initialized

isEntityInitializerback to summary
public default boolean isEntityInitializer()

Overrides default org.hibernate.sql.results.graph.Initializer.isEntityInitializer.

Annotations
@Override