KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > event > PreDeleteEvent


1 //$Id: PreDeleteEvent.java,v 1.8 2005/07/20 22:48:22 oneovthafew Exp $
2
package org.hibernate.event;
3
4 import java.io.Serializable JavaDoc;
5
6 import org.hibernate.persister.entity.EntityPersister;
7
8 /**
9  * Occurs before deleting an item from the datastore
10  *
11  * @author Gavin King
12  */

13 public class PreDeleteEvent {
14     private Object JavaDoc entity;
15     private EntityPersister persister;
16     private Serializable JavaDoc id;
17     private Object JavaDoc[] deletedState;
18     
19     public Object JavaDoc getEntity() {
20         return entity;
21     }
22     public Serializable JavaDoc getId() {
23         return id;
24     }
25     public EntityPersister getPersister() {
26         return persister;
27     }
28     public Object JavaDoc[] getDeletedState() {
29         return deletedState;
30     }
31     
32     public PreDeleteEvent(
33             Object JavaDoc entity,
34             Serializable JavaDoc id,
35             Object JavaDoc[] deletedState,
36             EntityPersister persister
37     ) {
38         this.entity = entity;
39         this.persister = persister;
40         this.id = id;
41         this.deletedState = deletedState;
42     }
43
44 }
45
Popular Tags