public class DefaultPersistEventListener extends AbstractSaveEventListener implements PersistEventListener
DELETED, DETACHED, PERSISTENT, TRANSIENT| 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, validate, 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) throws HibernateException
event - The save event to be handled.HibernateExceptionCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved