KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: PostLoadEvent.java,v 1.10 2005/05/27 03:53:58 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 an an entity instance is fully loaded.
10  *
11  * @author <a HREF="mailto:kabir.khan@jboss.org">Kabir Khan</a>, Gavin King
12  */

13 public class PostLoadEvent extends AbstractEvent {
14     private Object JavaDoc entity;
15     private Serializable JavaDoc id;
16     private EntityPersister persister;
17
18     public PostLoadEvent(EventSource session) {
19         super(session);
20     }
21
22     public Object JavaDoc getEntity() {
23         return entity;
24     }
25     
26     public EntityPersister getPersister() {
27         return persister;
28     }
29     
30     public Serializable JavaDoc getId() {
31         return id;
32     }
33
34     public PostLoadEvent setEntity(Object JavaDoc entity) {
35         this.entity = entity;
36         return this;
37     }
38     
39     public PostLoadEvent setId(Serializable JavaDoc id) {
40         this.id = id;
41         return this;
42     }
43
44     public PostLoadEvent setPersister(EntityPersister persister) {
45         this.persister = persister;
46         return this;
47     }
48     
49 }
50
Popular Tags