Uses of Interface
org.hibernate.event.spi.EventSource
-
Packages that use EventSource Package Description org.hibernate.action.internal The various concrete action implementations.org.hibernate.action.spi This SPI package defines an abstraction over the notion of an "action" which is scheduled for asynchronous execution by the event listeners.org.hibernate.cache.spi.entry This package defines formats for disassembled state kept in the second level cache.org.hibernate.dialect.lock Support forDialect
-specific locking strategies.org.hibernate.engine.internal Support for many of the internal workings of Hibernate.org.hibernate.engine.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.envers.internal.synchronization org.hibernate.event.internal This package defines a default set of event listeners that implement the default behaviors of Hibernate session operations.org.hibernate.event.spi Defines the event types and event listener interfaces for events produced by the statefulSession
.org.hibernate.internal An internal package containing implementations of central Hibernate APIs, mostly defined inorg.hibernate
.org.hibernate.loader.ast.internal org.hibernate.loader.ast.spi org.hibernate.persister.entity This package abstracts persistence mechanisms for entities. -
-
Uses of EventSource in org.hibernate.action.internal
Methods in org.hibernate.action.internal that return EventSource Modifier and Type Method Description protected EventSource
CollectionAction. eventSource()
protected EventSource
EntityAction. eventSource()
protected EventSource
CollectionAction. getSession()
EventSource
EntityAction. getSession()
originating session accessorMethods in org.hibernate.action.internal with parameters of type EventSource Modifier and Type Method Description void
AbstractEntityInsertAction. afterDeserialize(EventSource session)
void
BulkOperationCleanupAction. afterDeserialize(EventSource session)
void
CollectionAction. afterDeserialize(EventSource session)
Reconnect to session after deserialization...void
EntityAction. afterDeserialize(EventSource session)
Reconnect to session after deserialization...static UnresolvedEntityInsertActions
UnresolvedEntityInsertActions. deserialize(ObjectInputStream ois, EventSource session)
Deserialize anUnresolvedEntityInsertActions
object.Constructors in org.hibernate.action.internal with parameters of type EventSource Constructor Description AbstractEntityInsertAction(Object id, Object[] state, Object instance, boolean isVersionIncrementDisabled, EntityPersister persister, EventSource session)
Constructs an AbstractEntityInsertAction object.CollectionAction(CollectionPersister persister, PersistentCollection<?> collection, Object key, EventSource session)
CollectionRecreateAction(PersistentCollection<?> collection, CollectionPersister persister, Object id, EventSource session)
Constructs a CollectionRecreateActionCollectionRemoveAction(Object affectedOwner, CollectionPersister persister, Object id, boolean emptySnapshot, EventSource session)
Removes a persistent collection from a specified owner.CollectionRemoveAction(PersistentCollection<?> collection, CollectionPersister persister, Object id, boolean emptySnapshot, EventSource session)
Removes a persistent collection from its loaded owner.CollectionRemoveAction(CollectionPersister persister, Object id, EventSource session)
Removes a persistent collection for an unloaded proxy.CollectionUpdateAction(PersistentCollection<?> collection, CollectionPersister persister, Object id, boolean emptySnapshot, EventSource session)
Constructs a CollectionUpdateActionEntityAction(EventSource session, Object id, Object instance, EntityPersister persister)
Instantiate an action.EntityDeleteAction(Object id, Object[] state, Object version, Object instance, EntityPersister persister, boolean isCascadeDeleteEnabled, EventSource session)
Constructs an EntityDeleteAction.EntityDeleteAction(Object id, EntityPersister persister, EventSource session)
Constructs an EntityDeleteAction for an unloaded proxy.EntityIdentityInsertAction(Object[] state, Object instance, EntityPersister persister, boolean isVersionIncrementDisabled, EventSource session, boolean isDelayed)
Constructs an EntityIdentityInsertActionEntityInsertAction(Object id, Object[] state, Object instance, Object version, EntityPersister persister, boolean isVersionIncrementDisabled, EventSource session)
Constructs an EntityInsertAction.EntityUpdateAction(Object id, Object[] state, int[] dirtyProperties, boolean hasDirtyCollection, Object[] previousState, Object previousVersion, Object nextVersion, Object instance, Object rowId, EntityPersister persister, EventSource session)
Constructs an EntityUpdateActionOrphanRemovalAction(Object id, Object[] state, Object version, Object instance, EntityPersister persister, boolean isCascadeDeleteEnabled, EventSource session)
QueuedOperationCollectionAction(PersistentCollection<?> collection, CollectionPersister persister, Object id, EventSource session)
Constructs a CollectionUpdateAction -
Uses of EventSource in org.hibernate.action.spi
Methods in org.hibernate.action.spi with parameters of type EventSource Modifier and Type Method Description void
Executable. afterDeserialize(EventSource session)
Reconnect to session after deserialization -
Uses of EventSource in org.hibernate.cache.spi.entry
Methods in org.hibernate.cache.spi.entry with parameters of type EventSource Modifier and Type Method Description Object[]
StandardCacheEntryImpl. assemble(Object instance, Object id, EntityPersister persister, Interceptor interceptor, EventSource session)
Assemble the previously disassembled state represented by this entry into the given entity instance. -
Uses of EventSource in org.hibernate.dialect.lock
Methods in org.hibernate.dialect.lock with parameters of type EventSource Modifier and Type Method Description void
LockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)
Acquire an appropriate type of lock on the underlying data that will endure until the end of the current transaction.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)
void
PessimisticForceIncrementLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)
void
PessimisticReadSelectLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)
void
PessimisticReadUpdateLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)
void
PessimisticWriteSelectLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)
void
PessimisticWriteUpdateLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)
void
SelectLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)
void
UpdateLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)
-
Uses of EventSource in org.hibernate.engine.internal
Methods in org.hibernate.engine.internal with parameters of type EventSource Modifier and Type Method Description static <T> void
Cascade. cascade(CascadingAction<T> action, CascadePoint cascadePoint, EventSource eventSource, EntityPersister persister, Object parent)
Cascade an action from the parent entity instance to all its children.static <T> void
Cascade. cascade(CascadingAction<T> action, CascadePoint cascadePoint, EventSource eventSource, EntityPersister persister, Object parent, T anything)
Cascade an action from the parent entity instance to all its children. -
Uses of EventSource in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return EventSource Modifier and Type Method Description EventSource
SessionDelegatorBaseImpl. asEventSource()
default EventSource
SharedSessionContractImplementor. asEventSource()
Cast this session toEventSource
if possible.Methods in org.hibernate.engine.spi with parameters of type EventSource Modifier and Type Method Description void
ExecutableList. afterDeserialize(EventSource session)
Allow theExecutable
s to reassociate themselves with the session after deserialization.void
CascadingAction. cascade(EventSource session, Object child, String entityName, T anything, boolean isCascadeDeleteEnabled)
Cascade the action to the child object.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)
Given a collection, get an iterator of all its children, loading them from the database if necessary.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.void
CascadingAction. noCascade(EventSource session, Object parent, EntityPersister persister, Type propertyType, int propertyIndex)
Called (in the case ofCascadingAction.requiresNoCascadeChecking()
returning true) to validate that no cascade on the given property is considered a valid semantic.void
CascadingActions.BaseCascadingAction. noCascade(EventSource session, Object parent, EntityPersister persister, Type propertyType, int propertyIndex)
-
Uses of EventSource in org.hibernate.envers.internal.synchronization
Methods in org.hibernate.envers.internal.synchronization with parameters of type EventSource Modifier and Type Method Description AuditProcess
AuditProcessManager. get(EventSource session)
-
Uses of EventSource in org.hibernate.event.internal
Methods in org.hibernate.event.internal that return EventSource Modifier and Type Method Description protected EventSource
AbstractVisitor. getSession()
Methods in org.hibernate.event.internal with parameters of type EventSource Modifier and Type Method Description protected void
DefaultDeleteEventListener. cascadeAfterDelete(EventSource session, EntityPersister persister, Object entity, DeleteContext transientEntities)
protected void
AbstractSaveEventListener. cascadeAfterSave(EventSource source, EntityPersister persister, Object entity, C context)
Handles calls needed to perform post-save cascades.protected void
DefaultMergeEventListener. cascadeAfterSave(EventSource source, EntityPersister persister, Object entity, MergeContext anything)
Cascade behavior is redefined by this subclass, disable superclass behaviorprotected void
DefaultDeleteEventListener. cascadeBeforeDelete(EventSource session, EntityPersister persister, Object entity, DeleteContext transientEntities)
protected void
AbstractSaveEventListener. cascadeBeforeSave(EventSource source, EntityPersister persister, Object entity, C context)
Handles the calls needed to perform pre-save cascades for the given entity.protected void
DefaultMergeEventListener. cascadeBeforeSave(EventSource source, EntityPersister persister, Object entity, MergeContext anything)
Cascade behavior is redefined by this subclass, disable superclass behaviorprotected void
DefaultMergeEventListener. cascadeOnMerge(EventSource source, EntityPersister persister, Object entity, MergeContext copyCache)
Perform any cascades needed as part of this copy event.protected void
DefaultDeleteEventListener. deleteEntity(EventSource session, Object entity, EntityEntry entityEntry, boolean isCascadeDeleteEnabled, boolean isOrphanRemovalBeforeUpdates, EntityPersister persister, DeleteContext transientEntities)
Perform the entity deletion.protected void
DefaultDeleteEventListener. deleteTransientEntity(EventSource session, Object entity, EntityPersister persister, DeleteContext transientEntities)
We encountered a delete request on a transient instance.protected void
DefaultEvictEventListener. doEvict(Object object, EntityKey key, EntityPersister persister, EventSource session)
void
EntityCopyAllowedLoggedObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)
void
EntityCopyAllowedObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)
void
EntityCopyNotAllowedObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)
protected boolean
DefaultDeleteEventListener. invokeDeleteLifecycle(EventSource session, Object entity, EntityPersister persister)
protected void
DefaultPostLoadEventListener. invokeLoadLifecycle(PostLoadEvent event, EventSource session)
protected boolean
AbstractSaveEventListener. invokeSaveLifecycle(Object entity, EntityPersister persister, EventSource source)
protected boolean
DefaultSaveOrUpdateEventListener. invokeUpdateLifecycle(Object entity, EntityPersister persister, EventSource source)
Deprecated.protected void
AbstractFlushingEventListener. performExecutions(EventSource session)
Execute all SQL (and second-level cache updates) in a special order so that foreign-key constraints cannot be violated: Inserts, in the order they were performed Updates Deletion of collection elements Insertion of collection elements Deletes, in the order they were performedprotected Object
AbstractSaveEventListener. performSave(Object entity, Object id, EntityPersister persister, boolean useIdentityColumn, C context, EventSource source, boolean delayIdentityInserts)
Prepares the save call by checking the session caches for a pre-existing entity and performing any lifecycle callbacks.protected Object
AbstractSaveEventListener. performSaveOrReplicate(Object entity, EntityKey key, EntityPersister persister, boolean useIdentityColumn, C context, EventSource source, boolean delayIdentityInserts)
Performs all the actual work needed to save an entity (well to get the save moved to the execution queue).protected Object
AbstractSaveEventListener. saveWithGeneratedId(Object entity, String entityName, C context, EventSource source, boolean requiresImmediateIdAccess)
Prepares the save call using a newly generated id.protected Object
AbstractSaveEventListener. saveWithRequestedId(Object entity, Object requestedId, String entityName, C context, EventSource source)
Prepares the save call using the given requested id.void
EntityCopyAllowedLoggedObserver. topLevelMergeComplete(EventSource session)
void
EntityCopyAllowedObserver. topLevelMergeComplete(EventSource session)
void
EntityCopyNotAllowedObserver. topLevelMergeComplete(EventSource session)
protected void
AbstractLockUpgradeEventListener. upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource source)
Performs a pessimistic lock upgrade on a given entity, if needed.protected boolean
AbstractSaveEventListener. visitCollectionsBeforeSave(Object entity, Object id, Object[] values, Type[] types, EventSource source)
protected boolean
DefaultReplicateEventListener. visitCollectionsBeforeSave(Object entity, Object id, Object[] values, Type[] types, EventSource source)
Deprecated.Constructors in org.hibernate.event.internal with parameters of type EventSource Constructor Description DirtyCollectionSearchVisitor(Object entity, EventSource session, boolean[] propertyVersionability)
EvictVisitor(EventSource session, Object owner)
FlushVisitor(EventSource session, Object owner)
OnLockVisitor(EventSource session, Object key, Object owner)
OnReplicateVisitor(EventSource session, Object key, Object owner, boolean isUpdate)
OnUpdateVisitor(EventSource session, Object key, Object owner)
ProxyVisitor(EventSource session)
ReattachVisitor(EventSource session, Object ownerIdentifier, Object owner)
WrapVisitor(Object entity, Object id, EventSource session)
-
Uses of EventSource in org.hibernate.event.spi
Methods in org.hibernate.event.spi that return EventSource Modifier and Type Method Description EventSource
AbstractEvent. getSession()
Returns the session event source for this event.Methods in org.hibernate.event.spi with parameters of type EventSource Modifier and Type Method Description void
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)
void
EntityCopyObserver. topLevelMergeComplete(EventSource session)
Called when the top-level merge operation is complete.Constructors in org.hibernate.event.spi with parameters of type EventSource Constructor Description AbstractCollectionEvent(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source, Object affectedOwner, Object affectedOwnerId)
Constructs an AbstractCollectionEvent object.AbstractEvent(EventSource source)
Constructs an event from the given event session.AbstractPreDatabaseOperationEvent(EventSource source, Object entity, Object id, EntityPersister persister)
Constructs an event containing the pertinent information.AutoFlushEvent(Set<String> querySpaces, EventSource source)
ClearEvent(EventSource source)
Constructs an event from the given event session.DeleteEvent(Object object, EventSource source)
Constructs a new DeleteEvent instance.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)
LockEvent(Object object, LockOptions lockOptions, EventSource source)
LockEvent(String entityName, Object original, LockMode lockMode, EventSource source)
LockEvent(String entityName, Object original, 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)
PostDeleteEvent(Object entity, Object id, Object[] deletedState, EntityPersister persister, EventSource source)
PostInsertEvent(Object entity, Object id, Object[] state, EntityPersister persister, EventSource source)
PostLoadEvent(EventSource session)
PostUpdateEvent(Object entity, Object id, Object[] state, Object[] oldState, int[] dirtyProperties, EntityPersister persister, EventSource source)
PreCollectionRecreateEvent(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source)
PreCollectionRemoveEvent(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source, Object loadedOwner)
PreCollectionUpdateEvent(CollectionPersister collectionPersister, PersistentCollection<?> collection, EventSource source)
PreDeleteEvent(Object entity, Object id, Object[] deletedState, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.PreInsertEvent(Object entity, Object id, Object[] state, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.PreLoadEvent(EventSource session)
PreUpdateEvent(Object entity, Object id, Object[] state, Object[] oldState, EntityPersister persister, EventSource source)
Constructs an event containing the pertinent information.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)
ReplicateEvent(Object object, ReplicationMode replicationMode, EventSource source)
ReplicateEvent(String entityName, Object object, ReplicationMode replicationMode, EventSource source)
ResolveNaturalIdEvent(Map<String,Object> naturalIdValues, EntityPersister entityPersister, EventSource source)
ResolveNaturalIdEvent(Map<String,Object> naturalIdValues, EntityPersister entityPersister, LockOptions lockOptions, EventSource source)
SaveOrUpdateEvent(Object object, EventSource source)
SaveOrUpdateEvent(String entityName, Object original, Object id, EventSource source)
SaveOrUpdateEvent(String entityName, Object original, EventSource source)
-
Uses of EventSource in org.hibernate.internal
Classes in org.hibernate.internal that implement EventSource Modifier and Type Class Description class
SessionImpl
Concrete implementation of theSession
API.Methods in org.hibernate.internal that return EventSource Modifier and Type Method Description EventSource
SessionImpl. asEventSource()
-
Uses of EventSource in org.hibernate.loader.ast.internal
Methods in org.hibernate.loader.ast.internal with parameters of type EventSource Modifier and Type Method Description <K> List<T>
AbstractMultiIdEntityLoader. load(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
Object
CacheEntityLoaderHelper. loadFromSecondLevelCache(EventSource source, Object entity, LockMode lockMode, EntityPersister persister, EntityKey entityKey)
Attempts to load the entity from the second-level cache.CacheEntityLoaderHelper.PersistenceContextEntry
CacheEntityLoaderHelper. loadFromSessionCache(EntityKey keyToLoad, LoadEventListener.LoadType options, LockOptions lockOptions, EventSource session)
protected abstract <K> List<T>
AbstractMultiIdEntityLoader. performOrderedMultiLoad(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
protected <K> List<E>
MultiIdEntityLoaderArrayParam. performOrderedMultiLoad(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
protected List<T>
MultiIdEntityLoaderStandard. performOrderedMultiLoad(Object[] ids, MultiIdLoadOptions loadOptions, EventSource session)
protected abstract <K> List<T>
AbstractMultiIdEntityLoader. performUnorderedMultiLoad(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
protected <K> List<E>
MultiIdEntityLoaderArrayParam. performUnorderedMultiLoad(K[] ids, MultiIdLoadOptions loadOptions, EventSource session)
protected List<T>
MultiIdEntityLoaderStandard. performUnorderedMultiLoad(Object[] ids, MultiIdLoadOptions loadOptions, EventSource session)
protected <R,K>
K[]MultiIdEntityLoaderArrayParam. processResolvableEntities(K[] ids, MultiIdEntityLoaderArrayParam.ResolutionConsumer<R> resolutionConsumer, @NonNull MultiIdLoadOptions loadOptions, @NonNull LockOptions lockOptions, EventSource session)
static void
LoaderHelper. upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource session)
Ensure the LockMode associated with the entity in relation to a persistence context is great or equal to the requested mode. -
Uses of EventSource in org.hibernate.loader.ast.spi
Methods in org.hibernate.loader.ast.spi with parameters of type EventSource Modifier and Type Method Description <K> List<T>
MultiIdEntityLoader. load(K[] ids, MultiIdLoadOptions options, EventSource session)
Load multiple entities by id. -
Uses of EventSource in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity with parameters of type EventSource Modifier and Type Method Description void
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)
void
EntityPersister. lock(Object id, Object version, Object object, LockMode lockMode, EventSource session)
Do a version check (optional operation)void
EntityPersister. lock(Object id, Object version, Object object, LockOptions lockOptions, EventSource session)
Do a version check (optional operation)List<?>
AbstractEntityPersister. multiLoad(Object[] ids, EventSource session, MultiIdLoadOptions loadOptions)
List<?>
EntityPersister. multiLoad(Object[] ids, EventSource session, MultiIdLoadOptions loadOptions)
Performs a load of multiple entities (of this type) by identifier simultaneously.
-