Top Description Methods
org.hibernate.sql.exec.spi

public Interface Callback

Known Direct Implementers
org.hibernate.sql.exec.internal.CallbackImpl, org.hibernate.sql.exec.internal.CallbackNoOp
Imports
org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.loader.ast.spi.AfterLoadAction, org.hibernate.metamodel.mapping.EntityMappingType

Callback to allow SQM interpretation to trigger certain things within ORM. See the current AfterLoadAction javadocs for details. Specifically this would encompass things like follow-on locking, follow-on fetching, etc.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
invokeAfterLoadActions(Object entity, EntityMappingType entityMappingType, SharedSessionContractImplementor session)

Invoke all registered actions

public default void
invokeAfterLoadActions(SharedSessionContractImplementor session, Object entity, Loadable persister)

Deprecated for removal since 6. Use the updated signature
public void
registerAfterLoadAction(AfterLoadAction afterLoadAction)

Register a callback action

Method Detail

hasAfterLoadActionsback to summary
public boolean hasAfterLoadActions()
invokeAfterLoadActionsback to summary
public void invokeAfterLoadActions(Object entity, EntityMappingType entityMappingType, SharedSessionContractImplementor session)

Invoke all registered actions

invokeAfterLoadActionsback to summary
public default void invokeAfterLoadActions(SharedSessionContractImplementor session, Object entity, Loadable persister)

Deprecated

for removal since 6.

Use the updated signature

Annotations
@SuppressWarnings:removal
@Deprecated
since:6
forRemoval:true
registerAfterLoadActionback to summary
public void registerAfterLoadAction(AfterLoadAction afterLoadAction)

Register a callback action