Package org.hibernate.event.internal
Class DefaultUpdateEventListener
- java.lang.Object
-
- org.hibernate.event.internal.AbstractReassociateEventListener
-
- org.hibernate.event.internal.AbstractSaveEventListener<PersistContext>
-
- org.hibernate.event.internal.DefaultSaveOrUpdateEventListener
-
- org.hibernate.event.internal.DefaultUpdateEventListener
-
- All Implemented Interfaces:
SaveOrUpdateEventListener
,CallbackRegistryConsumer
@Deprecated(since="6") public class DefaultUpdateEventListener extends DefaultSaveOrUpdateEventListener
Deprecated.sinceSession.update(java.lang.Object)
is deprecatedAn event handler for update() events
-
-
Constructor Summary
Constructors Constructor Description DefaultUpdateEventListener()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Object
getUpdateId(Object entity, EntityPersister persister, Object requestedId, SessionImplementor session)
Deprecated.If the user specified an id, assign it to the instance and use that, otherwise use the id already assigned to the instanceprotected Object
performSaveOrUpdate(SaveOrUpdateEvent event)
Deprecated.-
Methods inherited from class org.hibernate.event.internal.DefaultSaveOrUpdateEventListener
entityIsDetached, entityIsPersistent, entityIsTransient, getCascadeAction, invokeUpdateLifecycle, onSaveOrUpdate, performUpdate, reassociateIfUninitializedProxy
-
Methods inherited from class org.hibernate.event.internal.AbstractSaveEventListener
cascadeAfterSave, cascadeBeforeSave, getMergeMap, injectCallbackRegistry, invokeSaveLifecycle, isVersionIncrementDisabled, performSave, performSaveOrReplicate, saveWithGeneratedId, saveWithRequestedId, substituteValuesIfNecessary, visitCollectionsBeforeSave
-
Methods inherited from class org.hibernate.event.internal.AbstractReassociateEventListener
reassociate
-
-
-
-
Method Detail
-
performSaveOrUpdate
protected Object performSaveOrUpdate(SaveOrUpdateEvent event)
Deprecated.- Overrides:
performSaveOrUpdate
in classDefaultSaveOrUpdateEventListener
-
getUpdateId
protected Object getUpdateId(Object entity, EntityPersister persister, Object requestedId, SessionImplementor session) throws HibernateException
Deprecated.If the user specified an id, assign it to the instance and use that, otherwise use the id already assigned to the instance- Overrides:
getUpdateId
in classDefaultSaveOrUpdateEventListener
- Parameters:
entity
- The entity.persister
- The entity persisterrequestedId
- The requested identifiersession
- The session- Returns:
- The id.
- Throws:
TransientObjectException
- If the entity is considered transient.HibernateException
-
-