org.hibernate.event.PreUpdateEvent Maven / Gradle / Ivy
//$Id: PreUpdateEvent.java 7850 2005-08-11 19:37:08Z epbernard $
package org.hibernate.event;
import java.io.Serializable;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.engine.SessionImplementor;
/**
* Occurs before updating the datastore
*
* @author Gavin King
*/
public class PreUpdateEvent {
private Object entity;
private EntityPersister persister;
private Object[] state;
private Object[] oldState;
private Serializable id;
private SessionImplementor source;
public PreUpdateEvent(
Object entity,
Serializable id,
Object[] state,
Object[] oldState,
EntityPersister persister,
SessionImplementor source
) {
this.source = 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;
}
public SessionImplementor getSource() {
return source;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy