站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

AbstractEvent (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.event
Class AbstractEvent

java.lang.Object
  extended byorg.hibernate.event.AbstractEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeleteEvent, EvictEvent, FlushEntityEvent, FlushEvent, InitializeCollectionEvent, LoadEvent, LockEvent, MergeEvent, PersistEvent, PostDeleteEvent, PostInsertEvent, PostLoadEvent, PostUpdateEvent, PreLoadEvent, RefreshEvent, ReplicateEvent, SaveOrUpdateEvent

public abstract class AbstractEvent
extends Object
implements Serializable

Defines a base class for Session generated events.

Author:
Steve Ebersole
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

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.