KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: PostDeleteEvent.java,v 1.14 2005/07/20 22:48:15 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 after deleting an item from the datastore
10  *
11  * @author Gavin King
12  */

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