Package org.hibernate.sql.exec.spi
Interface Callback
-
- All Known Implementing Classes:
CallbackImpl,CallbackNoOp
public interface CallbackCallback to allow SQM interpretation to trigger certain things within ORM. See the currentAfterLoadActionjavadocs 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 booleanhasAfterLoadActions()voidinvokeAfterLoadActions(Object entity, EntityMappingType entityMappingType, SharedSessionContractImplementor session)Invoke all registered actionsdefault voidinvokeAfterLoadActions(SharedSessionContractImplementor session, Object entity, Loadable persister)Deprecated, for removal: This API element is subject to removal in a future version.Use the updated signaturevoidregisterAfterLoadAction(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()
-
-