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 EventSourceCollectionAction. eventSource()protected EventSourceEntityAction. eventSource()protected EventSourceCollectionAction. getSession()EventSourceEntityAction. getSession()originating session accessorMethods in org.hibernate.action.internal with parameters of type EventSource Modifier and Type Method Description voidAbstractEntityInsertAction. afterDeserialize(EventSource session)voidBulkOperationCleanupAction. afterDeserialize(EventSource session)voidCollectionAction. afterDeserialize(EventSource session)Reconnect to session after deserialization...voidEntityAction. afterDeserialize(EventSource session)Reconnect to session after deserialization...static UnresolvedEntityInsertActionsUnresolvedEntityInsertActions. deserialize(ObjectInputStream ois, EventSource session)Deserialize anUnresolvedEntityInsertActionsobject.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 voidExecutable. 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 voidLockingStrategy. 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.voidOptimisticForceIncrementLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)voidOptimisticLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)voidPessimisticForceIncrementLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)voidPessimisticReadSelectLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)voidPessimisticReadUpdateLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)voidPessimisticWriteSelectLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)voidPessimisticWriteUpdateLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)voidSelectLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)voidUpdateLockingStrategy. 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> voidCascade. 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> voidCascade. 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 EventSourceSessionDelegatorBaseImpl. asEventSource()default EventSourceSharedSessionContractImplementor. asEventSource()Cast this session toEventSourceif possible.Methods in org.hibernate.engine.spi with parameters of type EventSource Modifier and Type Method Description voidExecutableList. afterDeserialize(EventSource session)Allow theExecutables to reassociate themselves with the session after deserialization.voidCascadingAction. cascade(EventSource session, Object child, String entityName, T anything, boolean isCascadeDeleteEnabled)Cascade the action to the child object.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)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.voidCascadingAction. 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.voidCascadingActions.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 AuditProcessAuditProcessManager. 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 EventSourceAbstractVisitor. getSession()Methods in org.hibernate.event.internal with parameters of type EventSource Modifier and Type Method Description protected voidDefaultDeleteEventListener. cascadeAfterDelete(EventSource session, EntityPersister persister, Object entity, DeleteContext transientEntities)protected voidAbstractSaveEventListener. cascadeAfterSave(EventSource source, EntityPersister persister, Object entity, C context)Handles calls needed to perform post-save cascades.protected voidDefaultMergeEventListener. cascadeAfterSave(EventSource source, EntityPersister persister, Object entity, MergeContext anything)Cascade behavior is redefined by this subclass, disable superclass behaviorprotected voidDefaultDeleteEventListener. cascadeBeforeDelete(EventSource session, EntityPersister persister, Object entity, DeleteContext transientEntities)protected voidAbstractSaveEventListener. cascadeBeforeSave(EventSource source, EntityPersister persister, Object entity, C context)Handles the calls needed to perform pre-save cascades for the given entity.protected voidDefaultMergeEventListener. cascadeBeforeSave(EventSource source, EntityPersister persister, Object entity, MergeContext anything)Cascade behavior is redefined by this subclass, disable superclass behaviorprotected voidDefaultMergeEventListener. cascadeOnMerge(EventSource source, EntityPersister persister, Object entity, MergeContext copyCache)Perform any cascades needed as part of this copy event.protected voidDefaultDeleteEventListener. deleteEntity(EventSource session, Object entity, EntityEntry entityEntry, boolean isCascadeDeleteEnabled, boolean isOrphanRemovalBeforeUpdates, EntityPersister persister, DeleteContext transientEntities)Perform the entity deletion.protected voidDefaultDeleteEventListener. deleteTransientEntity(EventSource session, Object entity, EntityPersister persister, DeleteContext transientEntities)We encountered a delete request on a transient instance.protected voidDefaultEvictEventListener. doEvict(Object object, EntityKey key, EntityPersister persister, EventSource session)voidEntityCopyAllowedLoggedObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)voidEntityCopyAllowedObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)voidEntityCopyNotAllowedObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)protected booleanDefaultDeleteEventListener. invokeDeleteLifecycle(EventSource session, Object entity, EntityPersister persister)protected voidDefaultPostLoadEventListener. invokeLoadLifecycle(PostLoadEvent event, EventSource session)protected booleanAbstractSaveEventListener. invokeSaveLifecycle(Object entity, EntityPersister persister, EventSource source)protected booleanDefaultSaveOrUpdateEventListener. invokeUpdateLifecycle(Object entity, EntityPersister persister, EventSource source)protected voidAbstractFlushingEventListener. 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 ObjectAbstractSaveEventListener. performSave(Object entity, Object id, EntityPersister persister, boolean useIdentityColumn, C context, EventSource source, boolean requiresImmediateIdAccess)Prepares the save call by checking the session caches for a pre-existing entity and performing any lifecycle callbacks.protected ObjectAbstractSaveEventListener. performSaveOrReplicate(Object entity, EntityKey key, EntityPersister persister, boolean useIdentityColumn, C context, EventSource source, boolean requiresImmediateIdAccess)Performs all the actual work needed to save an entity (well to get the save moved to the execution queue).protected ObjectAbstractSaveEventListener. saveWithGeneratedId(Object entity, String entityName, C context, EventSource source, boolean requiresImmediateIdAccess)Prepares the save call using a newly generated id.protected ObjectAbstractSaveEventListener. saveWithRequestedId(Object entity, Object requestedId, String entityName, C context, EventSource source)Prepares the save call using the given requested id.voidEntityCopyAllowedLoggedObserver. topLevelMergeComplete(EventSource session)voidEntityCopyAllowedObserver. topLevelMergeComplete(EventSource session)voidEntityCopyNotAllowedObserver. topLevelMergeComplete(EventSource session)protected voidAbstractLockUpgradeEventListener. upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource source)Performs a pessimistic lock upgrade on a given entity, if needed.protected booleanAbstractSaveEventListener. visitCollectionsBeforeSave(Object entity, Object id, Object[] values, Type[] types, EventSource source)protected booleanDefaultReplicateEventListener. visitCollectionsBeforeSave(Object entity, Object id, Object[] values, Type[] types, EventSource source)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 EventSourceAbstractEvent. 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 voidEntityCopyObserver. 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 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 classSessionImplConcrete implementation of theSessionAPI.Methods in org.hibernate.internal that return EventSource Modifier and Type Method Description EventSourceSessionImpl. 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)ObjectCacheEntityLoaderHelper. loadFromSecondLevelCache(EventSource source, Object entity, LockMode lockMode, EntityPersister persister, EntityKey entityKey)Attempts to load the entity from the second-level cache.CacheEntityLoaderHelper.PersistenceContextEntryCacheEntityLoaderHelper. 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 voidLoaderHelper. 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 voidAbstractEntityPersister. lock(Object id, Object version, Object object, LockMode lockMode, EventSource session)voidAbstractEntityPersister. lock(Object id, Object version, Object object, LockOptions lockOptions, EventSource session)voidEntityPersister. lock(Object id, Object version, Object object, LockMode lockMode, EventSource session)Do a version check (optional operation)voidEntityPersister. 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.
-