Package org.hibernate.sql.exec.spi
Interface Callback
-
- All Known Implementing Classes:
CallbackImpl
,CallbackNoOp
public interface Callback
Callback to allow SQM interpretation to trigger certain things within ORM. See the currentAfterLoadAction
javadocs for details. Specifically this would encompass things like follow-on locking, follow-on fetching, etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description boolean
hasAfterLoadActions()
void
invokeAfterLoadActions(Object entity, EntityMappingType entityMappingType, SharedSessionContractImplementor session)
Invoke all registered actionsdefault void
invokeAfterLoadActions(SharedSessionContractImplementor session, Object entity, Loadable persister)
Deprecated, for removal: This API element is subject to removal in a future version.Use the updated signaturevoid
registerAfterLoadAction(AfterLoadAction afterLoadAction)
Register a callback action
-
-
-
Method Detail
-
registerAfterLoadAction
void registerAfterLoadAction(AfterLoadAction afterLoadAction)
Register a callback action
-
invokeAfterLoadActions
void invokeAfterLoadActions(Object entity, EntityMappingType entityMappingType, SharedSessionContractImplementor session)
Invoke all registered actions
-
invokeAfterLoadActions
@Deprecated(since="6", forRemoval=true) default void invokeAfterLoadActions(SharedSessionContractImplementor session, Object entity, Loadable persister)
Deprecated, for removal: This API element is subject to removal in a future version.Use the updated signature
-
hasAfterLoadActions
boolean hasAfterLoadActions()
-
-