public class DefaultPersistEventListener extends AbstractSaveEventListener implements PersistEventListener
AbstractSaveEventListener.EntityState| Constructor and Description |
|---|
DefaultPersistEventListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
entityIsPersistent(PersistEvent event,
Map createCache) |
protected void |
entityIsTransient(PersistEvent event,
Map createCache)
Handle the given create event.
|
protected Boolean |
getAssumedUnsaved() |
protected CascadingAction |
getCascadeAction() |
void |
onPersist(PersistEvent event)
Handle the given create event.
|
void |
onPersist(PersistEvent event,
Map createCache)
Handle the given create event.
|
cascadeAfterSave, cascadeBeforeSave, getEntityState, getLoggableName, getMergeMap, invokeSaveLifecycle, isVersionIncrementDisabled, performSave, performSaveOrReplicate, saveWithGeneratedId, saveWithRequestedId, substituteValuesIfNecessary, visitCollectionsBeforeSavereassociateprotected CascadingAction getCascadeAction()
getCascadeAction in class AbstractSaveEventListenerprotected Boolean getAssumedUnsaved()
getAssumedUnsaved in class AbstractSaveEventListenerpublic void onPersist(PersistEvent event) throws HibernateException
onPersist in interface PersistEventListenerevent - The create event to be handled.HibernateExceptionpublic void onPersist(PersistEvent event, Map createCache) throws HibernateException
onPersist in interface PersistEventListenerevent - The create event to be handled.HibernateExceptionprotected void entityIsPersistent(PersistEvent event, Map createCache)
protected void entityIsTransient(PersistEvent event, Map createCache)
event - The save event to be handled.createCache - The copy cache of entity instance to merge/copy instance.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.