Package org.hibernate.event.spi
Class AbstractEvent
- java.lang.Object
-
- org.hibernate.event.spi.AbstractEvent
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractCollectionEvent
,AbstractPreDatabaseOperationEvent
,ClearEvent
,DeleteEvent
,EvictEvent
,FlushEntityEvent
,FlushEvent
,LoadEvent
,LockEvent
,MergeEvent
,PersistEvent
,PostDeleteEvent
,PostInsertEvent
,PostLoadEvent
,PostUpdateEvent
,PreLoadEvent
,RefreshEvent
,ReplicateEvent
,ResolveNaturalIdEvent
,SaveOrUpdateEvent
public abstract class AbstractEvent extends Object implements Serializable
Defines a base class forSession
-generated events.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractEvent(EventSource source)
Constructs an event from the given event session.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSource
getSession()
Returns the session event source for this event.
-
-
-
Constructor Detail
-
AbstractEvent
public AbstractEvent(EventSource source)
Constructs an event from the given event session.- Parameters:
source
- The session event source.
-
-
Method Detail
-
getSession
public final EventSource getSession()
Returns the session event source for this event. This is the underlying session from which this event was generated.- Returns:
- The session event source.
-
-