Package org.hibernate.event.spi
Class PreUpdateEvent
java.lang.Object
org.hibernate.event.spi.AbstractEvent
org.hibernate.event.spi.AbstractDatabaseOperationEvent
org.hibernate.event.spi.AbstractPreDatabaseOperationEvent
org.hibernate.event.spi.PreUpdateEvent
- All Implemented Interfaces:
Serializable
Represents a
pre-update
event, which occurs just prior to
performing the update of an entity in the database.- See Also:
-
Field Summary
Fields inherited from class org.hibernate.event.spi.AbstractEvent
source
-
Constructor Summary
ConstructorsConstructorDescriptionPreUpdateEvent
(Object entity, Object id, Object[] state, Object[] oldState, EntityPersister persister, SharedSessionContractImplementor source) Constructs an event containing the pertinent information. -
Method Summary
Methods inherited from class org.hibernate.event.spi.AbstractDatabaseOperationEvent
getEntity, getId, getPersister
Methods inherited from class org.hibernate.event.spi.AbstractEvent
getFactory, getSession
-
Constructor Details
-
Method Details
-
getState
Retrieves the state to be used in the update.- Returns:
- The current state.
-
getOldState
The old state of the entity at the time it was last loaded from the database; can be null in the case of detached entities.- Returns:
- The loaded state, or null.
-