public class DefaultUpdateEventListener extends DefaultSaveOrUpdateEventListener
AbstractSaveEventListener.EntityState
Constructor and Description |
---|
DefaultUpdateEventListener() |
Modifier and Type | Method and Description |
---|---|
protected Serializable |
getUpdateId(Object entity,
EntityPersister persister,
Serializable requestedId,
SessionImplementor session)
If the user specified an id, assign it to the instance and use that,
otherwise use the id already assigned to the instance
|
protected Serializable |
performSaveOrUpdate(SaveOrUpdateEvent event) |
entityIsDetached, entityIsPersistent, entityIsTransient, getCascadeAction, invokeUpdateLifecycle, onSaveOrUpdate, performUpdate, reassociateIfUninitializedProxy, saveWithGeneratedOrRequestedId
cascadeAfterSave, cascadeBeforeSave, getAssumedUnsaved, getEntityState, getLoggableName, getMergeMap, invokeSaveLifecycle, isVersionIncrementDisabled, performSave, performSaveOrReplicate, saveWithGeneratedId, saveWithRequestedId, substituteValuesIfNecessary, visitCollectionsBeforeSave
reassociate
protected Serializable performSaveOrUpdate(SaveOrUpdateEvent event)
performSaveOrUpdate
in class DefaultSaveOrUpdateEventListener
protected Serializable getUpdateId(Object entity, EntityPersister persister, Serializable requestedId, SessionImplementor session) throws HibernateException
getUpdateId
in class DefaultSaveOrUpdateEventListener
entity
- The entity.persister
- The entity persisterrequestedId
- The requested identifiersession
- The sessionTransientObjectException
- If the entity is considered transient.HibernateException
Copyright © 2018 JBoss by Red Hat. All rights reserved.