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 TypeMethodDescriptionvoidExecutable.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 voidLockingStrategy.lock(Object id, Object version, Object object, int timeout, EventSource session) Deprecated.voidOptimisticForceIncrementLockingStrategy.lock(Object id, Object version, Object object, int timeout, EventSource session) voidOptimisticLockingStrategy.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 EventSourceSharedSessionContractImplementor.asEventSource()Cast this session toEventSourceif possible.Methods in org.hibernate.engine.spi with parameters of type EventSourceModifier and TypeMethodDescriptionvoidExecutableList.afterDeserialize(EventSource session) Allow theExecutables to reassociate themselves with the session after deserialization.voidCascadingAction.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 voidCascadingAction.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 ActionQueueActionQueue.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 EventSourceAbstractSessionEvent.getEventSource()MergeContext.getEventSource()final EventSourceAbstractSessionEvent.getSession()Returns the session event source for this event.Methods in org.hibernate.event.spi with parameters of type EventSourceModifier and TypeMethodDescriptionvoidEntityCopyObserver.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 StringAbstractCollectionEvent.getAffectedOwnerEntityName(CollectionPersister collectionPersister, Object affectedOwner, EventSource source) protected static CollectionPersisterAbstractCollectionEvent.getLoadedCollectionPersister(PersistentCollection<?> collection, EventSource source) protected static ObjectAbstractCollectionEvent.getLoadedOwnerIdOrNull(PersistentCollection<?> collection, EventSource source) protected static ObjectAbstractCollectionEvent.getLoadedOwnerOrNull(PersistentCollection<?> collection, EventSource source) protected static ObjectAbstractCollectionEvent.getOwnerIdOrNull(Object owner, EventSource source) voidEntityCopyObserver.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) PreFlushEvent(QueryParameterBindings parameterBindings, 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 TypeMethodDescriptionvoidAbstractEntityPersister.lock(Object id, Object version, Object object, LockMode lockMode, EventSource session) voidAbstractEntityPersister.lock(Object id, Object version, Object object, LockOptions lockOptions, EventSource session) default voidEntityPersister.lock(Object id, Object version, Object object, LockMode lockMode, EventSource session) default voidEntityPersister.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)