Uses of Interface
org.hibernate.event.spi.EventSource
-
Packages that use EventSource Package Description 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.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.event.spi Defines the event types and event listener interfaces for events produced by the statefulSession.org.hibernate.loader.ast.spi org.hibernate.persister.entity 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 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 voidAbstractSelectLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)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)voidPessimisticReadUpdateLockingStrategy. lock(Object id, Object version, Object object, int timeout, EventSource session)voidPessimisticWriteUpdateLockingStrategy. 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.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.default voidCascadingAction. noCascade(EventSource session, Object parent, EntityPersister persister, Type propertyType, int propertyIndex)Deprecated, for removal: This API element is subject to removal in a future version.No longer used -
Uses of EventSource in org.hibernate.event.spi
Methods in org.hibernate.event.spi that return EventSource Modifier and Type Method Description EventSourceMergeContext. getEventSource()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)default voidAutoFlushEventListener. onAutoPreFlush(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, boolean skipPreFlush, EventSource source)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)PostUpsertEvent(Object entity, Object id, Object[] state, 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.PreUpsertEvent(Object entity, Object id, Object[] state, 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.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.
-