org.hibernate.event.PostUpdateEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate Show documentation
Show all versions of hibernate Show documentation
Relational Persistence for Java
//$Id: PostUpdateEvent.java 9964 2006-05-30 15:40:54Z epbernard $
package org.hibernate.event;
import java.io.Serializable;
import org.hibernate.persister.entity.EntityPersister;
/**
* Occurs after the datastore is updated
*
* @author Gavin King
*/
public class PostUpdateEvent extends AbstractEvent {
private Object entity;
private EntityPersister persister;
private Object[] state;
private Object[] oldState;
private Serializable id;
public PostUpdateEvent(
Object entity,
Serializable id,
Object[] state,
Object[] oldState,
EntityPersister persister,
EventSource source
) {
super(source);
this.entity = entity;
this.id = id;
this.state = state;
this.oldState = oldState;
this.persister = persister;
}
public Object getEntity() {
return entity;
}
public Serializable getId() {
return id;
}
public Object[] getOldState() {
return oldState;
}
public EntityPersister getPersister() {
return persister;
}
public Object[] getState() {
return state;
}
}