1 package org.hibernate.event; 3 4 import java.io.Serializable ; 5 6 import org.hibernate.persister.entity.EntityPersister; 7 8 13 public class PreUpdateEvent { 14 private Object entity; 15 private EntityPersister persister; 16 private Object [] state; 17 private Object [] oldState; 18 private Serializable id; 19 20 public PreUpdateEvent( 21 Object entity, 22 Serializable id, 23 Object [] state, 24 Object [] oldState, 25 EntityPersister persister 26 ) { 27 this.entity = entity; 28 this.id = id; 29 this.state = state; 30 this.oldState = oldState; 31 this.persister = persister; 32 } 33 34 public Object getEntity() { 35 return entity; 36 } 37 public Serializable getId() { 38 return id; 39 } 40 public Object [] getOldState() { 41 return oldState; 42 } 43 public EntityPersister getPersister() { 44 return persister; 45 } 46 public Object [] getState() { 47 return state; 48 } 49 } 50 | Popular Tags |