Package org.hibernate.event.internal
package org.hibernate.event.internal
This package defines a default set of event listeners that implement
the default behaviors of Hibernate session operations.
-
ClassDescriptionA convenience base class for listeners whose functionality results in flushing.A convenience base class for listeners responding to save events.Abstract superclass of algorithms that walk a tree of property values of an entity, and perform specific functionality for collections, components and associated entities.Defines the default flush event listeners used by hibernate for flushing session state in response to generated auto-flush events.Defines the default delete event listener used by hibernate for deleting entities from the datastore in response to generated delete events.Defines the default dirty-check event listener used by hibernate for checking the session for dirtiness in response to generated dirty-check events.Defines the default evict event listener used by hibernate for evicting entities in response to generated flush events.An event that occurs for each entity instance at flush timeDefines the default flush event listeners used by hibernate for flushing session state in response to generated flush events.Defines the default load event listeners used by hibernate for loading entities in response to generated load events.Defines the default lock event listeners used by hibernate to lock entities in response to generated lock events.Defines the default copy event listener used by hibernate for copying entities in response to generated copy events.Defines the default create event listener used by hibernate for creating transient entities in response to generated create events.When persist is used as the cascade action, persistOnFlush should be usedPerforms needed
EntityEntry.getLockMode()
-related processing.Called before injecting property values into a newly loaded entity instance.Defines the default refresh event listener used by hibernate for refreshing entities in response to generated refresh events.Deprecated.Defines the default load event listeners used by hibernate for loading entities in response to generated load events.Do we have a dirty collection here? If it's a new application-instantiated collection, return true.AnEventManager
that ignores all events.AnEntityCopyObserver
implementation that allows multiple representations of the same persistent entity to be merged and provides logging of the entity copies that are detected.AnEntityCopyObserver
implementation that allows multiple representations of the same persistent entity to be merged.Looks for the configuration property "hibernate.event.merge.entity_copy_observer" and registers the matchingEntityCopyObserverFactory
based on the configuration value.Evict any collections referenced by the object from the session cache.Process collections reachable from an entity.When a transient entity is passed to lock(), we must inspect all its collections and associate any uninitialized PersistentCollections with this session associate any initialized PersistentCollections with this session, using the existing snapshot throw an exception for each "new" collectionWhen an entity is passed to replicate(), and there is an existing row, we must inspect all its collections and associate any uninitialized PersistentCollections with this session associate any initialized PersistentCollections with this session, using the existing snapshot execute a collection removal (SQL DELETE) for each null collection property or "new" collectionWhen an entity is passed to update(), we must inspect all its collections and 1.The standard PostDeleteEventListener implementationThis is just a stub, since we don't yet have a@PostUpsert
callbackReassociates uninitialized proxies with the sessionAbstract superclass of visitors that reattach collections.Wrap collections in a Hibernate collection wrapper.
Session.replicate(java.lang.Object, org.hibernate.ReplicationMode)
is deprecated