当前页面:
在线文档首页 >
Hibernate 3.2.4 正式版 API 英文文档
DefaultPersistEventListener (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate.event.def
Class DefaultPersistEventListener
java.lang.Object
org.hibernate.event.def.AbstractReassociateEventListener
org.hibernate.event.def.AbstractSaveEventListener
org.hibernate.event.def.DefaultPersistEventListener
- All Implemented Interfaces:
- PersistEventListener, Serializable
- Direct Known Subclasses:
- DefaultPersistOnFlushEventListener
- public class DefaultPersistEventListener
- extends AbstractSaveEventListener
- implements PersistEventListener
Defines the default create event listener used by hibernate for creating
transient entities in response to generated create events.
- Author:
- Gavin King
- See Also:
- Serialized Form
Methods inherited from class org.hibernate.event.def.AbstractSaveEventListener |
cascadeAfterSave, cascadeBeforeSave, getEntityState, getLoggableName, getMergeMap, invokeSaveLifecycle, isVersionIncrementDisabled, performSave, performSaveOrReplicate, saveWithGeneratedId, saveWithRequestedId, substituteValuesIfNecessary, validate, visitCollectionsBeforeSave |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPersistEventListener
public DefaultPersistEventListener()
onPersist
public void onPersist(PersistEvent event)
throws HibernateException
- Handle the given create event.
- Specified by:
onPersist
in interface PersistEventListener
- Parameters:
event
- The create event to be handled.
- Throws:
HibernateException
onPersist
public void onPersist(PersistEvent event,
Map createCache)
throws HibernateException
- Handle the given create event.
- Specified by:
onPersist
in interface PersistEventListener
- Parameters:
event
- The create event to be handled.
- Throws:
HibernateException
entityIsPersistent
protected void entityIsPersistent(PersistEvent event,
Map createCache)
entityIsTransient
protected void entityIsTransient(PersistEvent event,
Map createCache)
throws HibernateException
- Handle the given create event.
- Parameters:
event
- The save event to be handled.
- Throws:
HibernateException
getCascadeAction
protected CascadingAction getCascadeAction()
- Specified by:
getCascadeAction
in class AbstractSaveEventListener
getAssumedUnsaved
protected Boolean getAssumedUnsaved()
- Overrides:
getAssumedUnsaved
in class AbstractSaveEventListener