Uses of Interface
org.hibernate.event.spi.EventSource
-
Packages that use EventSource Package Description org.hibernate.cache.spi.entry org.hibernate.engine.spi org.hibernate.event.spi org.hibernate.loader.entity -
-
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.engine.spi
Methods in org.hibernate.engine.spi with parameters of type EventSource Modifier and Type Method Description voidCascadingAction. cascade(EventSource session, Object child, String entityName, T anything, boolean isCascadeDeleteEnabled)Cascade the action to the child object.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.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.loader.entity
Methods in org.hibernate.loader.entity with parameters of type EventSource Modifier and Type Method Description ObjectCacheEntityLoaderHelper. loadFromSecondLevelCache(EventSource source, Object entity, LockMode lockMode, EntityPersister persister, EntityKey entityKey)Attempts to load the entity from the second-level cache.
-