KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > testGenerateJavaEE14 > TestBmpBean


1 /*
2  * TestBmpBean.java
3  *
4  * Created on {date}, {time}
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package testGenerateJavaEE14;
11
12 import javax.ejb.EntityBean JavaDoc;
13 import javax.ejb.EntityContext JavaDoc;
14 import javax.ejb.FinderException JavaDoc;
15
16 /**
17  *
18  * @author {user}
19  */

20 public class TestBmpBean implements EntityBean JavaDoc {
21
22     private EntityContext JavaDoc context;
23     
24     // <editor-fold defaultstate="collapsed" desc="EJB infrastructure methods. Click the + sign on the left to edit the code.">
25

26     // TODO Add code to acquire and use other enterprise resources (DataSource, JMS, enterprise beans, Web services)
27
// TODO Add business methods
28
// TODO Add create methods
29

30     /**
31      * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
32      */

33     public void setEntityContext(EntityContext JavaDoc aContext) {
34         context = aContext;
35     }
36     
37     /**
38      * @see javax.ejb.EntityBean#ejbActivate()
39      */

40     public void ejbActivate() {
41         
42     }
43     
44     /**
45      * @see javax.ejb.EntityBean#ejbPassivate()
46      */

47     public void ejbPassivate() {
48         
49     }
50     
51     /**
52      * @see javax.ejb.EntityBean#ejbRemove()
53      */

54     public void ejbRemove() {
55         
56     }
57     
58     /**
59      * @see javax.ejb.EntityBean#unsetEntityContext()
60      */

61     public void unsetEntityContext() {
62         context = null;
63     }
64     
65     /**
66      * @see javax.ejb.EntityBean#ejbLoad()
67      */

68     public void ejbLoad() {
69         // TODO add code to retrieve data
70
}
71     
72     /**
73      * @see javax.ejb.EntityBean#ejbStore()
74      */

75     public void ejbStore() {
76         // TODO add code to persist data
77
}
78
79     // </editor-fold>
80

81     /**
82      * See EJB 2.0 and EJB 2.1 section 12.2.5
83      */

84     public java.lang.Long JavaDoc ejbFindByPrimaryKey(java.lang.Long JavaDoc aKey) throws FinderException JavaDoc {
85         // TODO add code to locate aKey from persistent storage
86
// throw javax.ejb.ObjectNotFoundException if aKey is not in
87
// persistent storage.
88
}
89
90 }
91
Popular Tags