public PreUpdateEvent(Object entity,
Serializable id,
Object[] state,
Object[] oldState,
EntityPersister persister,
EventSource source) {
super( source, entity, id, persister );
this.state = state;
this.oldState = oldState;
}
Constructs an event containing the pertinent information. Parameters:
entity - The entity to be updated.
id - The id of the entity to use for updating.
state - The state to be updated.
oldState - The state of the entity at the time it was loaded from
the database.
persister - The entity's persister.
source - The session from which the event originated.
|