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, visitCollectionsBeforeSave
reassociate
protected CascadingAction getCascadeAction()
getCascadeAction
in class AbstractSaveEventListener
protected Boolean getAssumedUnsaved()
getAssumedUnsaved
in class AbstractSaveEventListener
public void onPersist(PersistEvent event) throws HibernateException
onPersist
in interface PersistEventListener
event
- The create event to be handled.HibernateException
public void onPersist(PersistEvent event, Map createCache) throws HibernateException
onPersist
in interface PersistEventListener
event
- The create event to be handled.HibernateException
protected 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-2017 Red Hat, Inc. All Rights Reserved.