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

PersistEventListener (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.event
Interface PersistEventListener

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultPersistEventListener

public interface PersistEventListener
extends Serializable

Defines the contract for handling of create events generated from a session.

Author:
Gavin King

Method Summary
 void onPersist(PersistEvent event)
          Handle the given create event.
 void onPersist(PersistEvent event, Map createdAlready)
          Handle the given create event.
 

Method Detail

onPersist

public void onPersist(PersistEvent event)
               throws HibernateException
Handle the given create event.

Parameters:
event - The create event to be handled.
Throws:
HibernateException

onPersist

public void onPersist(PersistEvent event,
                      Map createdAlready)
               throws HibernateException
Handle the given create event.

Parameters:
event - The create event to be handled.
Throws:
HibernateException