Uses of Interface
org.hibernate.event.spi.EventSource
Packages that use EventSource
Package
Description
This SPI package defines an abstraction over the notion of an "action"
which is scheduled for asynchronous execution by the event listeners.
Support for
Dialect
-specific locking strategies.This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
Defines the event types and event listener interfaces for
events produced by the stateful
Session
.This package abstracts persistence mechanisms for entities.
-
Uses of EventSource in org.hibernate.action.spi
Methods in org.hibernate.action.spi with parameters of type EventSourceModifier and TypeMethodDescriptionvoid
Executable.afterDeserialize
(EventSource session) Reconnect to session after deserialization -
Uses of EventSource in org.hibernate.dialect.lock
Methods in org.hibernate.dialect.lock with parameters of type EventSourceModifier and TypeMethodDescriptiondefault void
LockingStrategy.lock
(Object id, Object version, Object object, int timeout, EventSource session) Deprecated.void
OptimisticForceIncrementLockingStrategy.lock
(Object id, Object version, Object object, int timeout, EventSource session) void
OptimisticLockingStrategy.lock
(Object id, Object version, Object object, int timeout, EventSource session) -
Uses of EventSource in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return EventSourceModifier and TypeMethodDescriptionSessionDelegatorBaseImpl.asEventSource()
default EventSource
SharedSessionContractImplementor.asEventSource()
Cast this session toEventSource
if possible.Methods in org.hibernate.engine.spi with parameters of type EventSourceModifier and TypeMethodDescriptionvoid
ExecutableList.afterDeserialize
(EventSource session) Allow theExecutable
s to reassociate themselves with the session after deserialization.void
CascadingAction.cascade
(EventSource session, Object child, String childEntityName, String parentEntityName, String propertyName, @Nullable List<String> attributePath, T anything, boolean isCascadeDeleteEnabled) Cascade the action to the child object.default void
CascadingAction.cascade
(EventSource session, Object child, String childEntityName, T anything, boolean isCascadeDeleteEnabled) Deprecated, for removal: This API element is subject to removal in a future version.No longer called.static ActionQueue
ActionQueue.deserialize
(ObjectInputStream ois, EventSource session) Used by the owning session to explicitly control deserialization of the action queue.static Iterator
<?> CascadingActions.getAllElementsIterator
(EventSource session, CollectionType collectionType, Object collection) Deprecated, for removal: This API element is subject to removal in a future version.Iterator
<?> CascadingAction.getCascadableChildrenIterator
(EventSource session, CollectionType collectionType, Object collection) Given a collection, get an iterator of the children upon which the current cascading action should be visited. -
Uses of EventSource in org.hibernate.event.spi
Fields in org.hibernate.event.spi declared as EventSourceMethods in org.hibernate.event.spi that return EventSourceModifier and TypeMethodDescriptionfinal EventSource
AbstractSessionEvent.getEventSource()
MergeContext.getEventSource()
final EventSource
AbstractSessionEvent.getSession()
Returns the session event source for this event.Methods in org.hibernate.event.spi with parameters of type EventSourceModifier and TypeMethodDescriptionvoid
EntityCopyObserver.entityCopyDetected
(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session) Called when more than one representation of the same persistent entity is being merged.protected static String
AbstractCollectionEvent.getAffectedOwnerEntityName
(CollectionPersister collectionPersister, Object affectedOwner, EventSource source) protected static CollectionPersister
AbstractCollectionEvent.getLoadedCollectionPersister
(PersistentCollection<?> collection, EventSource source) protected static Object
AbstractCollectionEvent.getLoadedOwnerIdOrNull
(PersistentCollection<?> collection, EventSource source) protected static Object
AbstractCollectionEvent.getLoadedOwnerOrNull
(PersistentCollection<?> collection, EventSource source) protected static Object
AbstractCollectionEvent.getOwnerIdOrNull
(Object owner, EventSource source) default void
AutoFlushEventListener.onAutoPreFlush
(EventSource source) void
EntityCopyObserver.topLevelMergeComplete
(EventSource session) Called when the toplevel merge operation is complete.Constructors in org.hibernate.event.spi with parameters of type EventSourceModifierConstructorDescriptionAbstractCollectionEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source, Object affectedOwner, Object affectedOwnerId) Constructs an instance for a stateful session.AbstractSessionEvent
(EventSource source) Constructs an event from the given event session.AutoFlushEvent
(Set<String> querySpaces, boolean skipPreFlush, EventSource source) AutoFlushEvent
(Set<String> querySpaces, EventSource source) ClearEvent
(EventSource source) DeleteEvent
(Object object, EventSource source) DeleteEvent
(String entityName, Object object, boolean cascadeDeleteEnabled, boolean orphanRemovalBeforeUpdates, EventSource source) DeleteEvent
(String entityName, Object object, boolean cascadeDeleteEnabled, EventSource source) DeleteEvent
(String entityName, Object object, EventSource source) DirtyCheckEvent
(EventSource source) EvictEvent
(Object object, EventSource source) FlushEntityEvent
(EventSource source, Object entity, EntityEntry entry) FlushEvent
(EventSource source) InitializeCollectionEvent
(PersistentCollection<?> collection, EventSource source) LoadEvent
(Object entityId, Object instanceToLoad, EventSource source, Boolean readOnly) LoadEvent
(Object entityId, String entityClassName, boolean isAssociationFetch, EventSource source, Boolean readOnly) LoadEvent
(Object entityId, String entityClassName, LockMode lockMode, EventSource source, Boolean readOnly) LoadEvent
(Object entityId, String entityClassName, LockOptions lockOptions, EventSource source, Boolean readOnly) LockEvent
(Object object, LockMode lockMode, EventSource source) Deprecated, for removal: This API element is subject to removal in a future version.Use LockEvent(Object, LockOptions, EventSource) instead.LockEvent
(Object object, LockOptions lockOptions, EventSource source) LockEvent
(String entityName, Object object, LockMode lockMode, EventSource source) Deprecated, for removal: This API element is subject to removal in a future version.Use LockEvent(String, Object, LockOptions, EventSource) instead.LockEvent
(String entityName, Object object, LockOptions lockOptions, EventSource source) MergeContext
(EventSource session, EntityCopyObserver entityCopyObserver) MergeEvent
(Object object, EventSource source) MergeEvent
(String entityName, Object original, Object id, EventSource source) MergeEvent
(String entityName, Object original, EventSource source) PersistEvent
(Object object, EventSource source) PersistEvent
(String entityName, Object original, EventSource source) PostCollectionRecreateEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source) PostCollectionRemoveEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source, Object loadedOwner) PostCollectionUpdateEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source) PostLoadEvent
(Object id, EntityPersister persister, Object entity, EventSource session) PostLoadEvent
(EventSource session) PreCollectionRecreateEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source) PreCollectionRemoveEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source, Object loadedOwner) PreCollectionUpdateEvent
(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source) PreLoadEvent
(EventSource session) RefreshEvent
(Object object, EventSource source) RefreshEvent
(Object object, LockMode lockMode, EventSource source) RefreshEvent
(Object object, LockOptions lockOptions, EventSource source) RefreshEvent
(String entityName, Object object, EventSource source) RefreshEvent
(String entityName, Object object, LockOptions lockOptions, EventSource source) Deprecated.useRefreshEvent(Object, LockOptions, EventSource)
instead.ReplicateEvent
(Object object, ReplicationMode replicationMode, EventSource source) ReplicateEvent
(String entityName, Object object, ReplicationMode replicationMode, EventSource source) -
Uses of EventSource in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity with parameters of type EventSourceModifier and TypeMethodDescriptionvoid
AbstractEntityPersister.lock
(Object id, Object version, Object object, LockMode lockMode, EventSource session) void
AbstractEntityPersister.lock
(Object id, Object version, Object object, LockOptions lockOptions, EventSource session) default void
EntityPersister.lock
(Object id, Object version, Object object, LockMode lockMode, EventSource session) default void
EntityPersister.lock
(Object id, Object version, Object object, LockOptions lockOptions, EventSource session) List
<?> AbstractEntityPersister.multiLoad
(Object[] ids, EventSource session, MultiIdLoadOptions loadOptions) default List
<?> EntityPersister.multiLoad
(Object[] ids, EventSource session, MultiIdLoadOptions loadOptions)
LockingStrategy.lock(Object, Object, Object, int, SharedSessionContractImplementor)