Class AbstractEvent

  extended by org.hibernate.event.spi.AbstractEvent
All Implemented Interfaces:
Direct Known Subclasses:
AbstractCollectionEvent, AbstractPreDatabaseOperationEvent, 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 for Session generated events.

See Also:
Serialized Form

Constructor Summary
AbstractEvent(EventSource source)
          Constructs an event from the given event session.
Method Summary
 EventSource getSession()
          Returns the session event source for this event.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public AbstractEvent(EventSource source)
Constructs an event from the given event session.

source - The session event source.
Method Detail


public final EventSource getSession()
Returns the session event source for this event. This is the underlying session from which this event was generated.

The session event source.

Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.