KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > ejb > cmr > EmployeeAddressCMP


1 /*
2  * Generated by XDoclet - Do not edit!
3  */

4 package test.ejb.cmr;
5
6 /**
7  * CMP layer for EmployeeAddress.
8  * @xdoclet-generated at 16-04-05
9  * @copyright The XDoclet Team
10  * @author XDoclet
11  * @version 1.2.3
12  */

13 public abstract class EmployeeAddressCMP
14    extends test.ejb.cmr.EmployeeAddressBean
15    implements javax.ejb.EntityBean JavaDoc
16 {
17
18    public test.ejb.cmr.EmployeeAddressData getData()
19    {
20       test.ejb.cmr.EmployeeAddressData dataHolder = null;
21       try
22       {
23          dataHolder = new test.ejb.cmr.EmployeeAddressData();
24
25          dataHolder.setId( getId() );
26          dataHolder.setDescription( getDescription() );
27
28       }
29       catch (RuntimeException JavaDoc e)
30       {
31          throw new javax.ejb.EJBException JavaDoc(e);
32       }
33
34       return dataHolder;
35    }
36
37    /**
38     * Generated ejbPostCreate for corresponding ejbCreate method.
39     *
40     * @see #ejbCreate(test.ejb.cmr.EmployeeAddressValue eav)
41     */

42    public void ejbPostCreate(test.ejb.cmr.EmployeeAddressValue eav)
43    {
44    }
45
46    public void ejbLoad()
47    {
48    }
49
50    public void ejbStore()
51    {
52    }
53
54    public void ejbActivate()
55    {
56    }
57
58    public void ejbPassivate()
59    {
60
61       EmployeeAddressValue = null;
62    }
63
64    public void setEntityContext(javax.ejb.EntityContext JavaDoc ctx)
65    {
66    }
67
68    public void unsetEntityContext()
69    {
70    }
71
72    public void ejbRemove() throws javax.ejb.RemoveException JavaDoc
73    {
74
75    }
76
77  /* Value Objects BEGIN */
78
79    private test.ejb.cmr.EmployeeAddressValue EmployeeAddressValue = null;
80
81    public test.ejb.cmr.EmployeeAddressValue getEmployeeAddressValue()
82    {
83       EmployeeAddressValue = new test.ejb.cmr.EmployeeAddressValue();
84       try
85          {
86             EmployeeAddressValue.setId( getId() );
87             EmployeeAddressValue.setDescription( getDescription() );
88
89          }
90          catch (Exception JavaDoc e)
91          {
92             throw new javax.ejb.EJBException JavaDoc(e);
93          }
94
95       return EmployeeAddressValue;
96    }
97
98    public void setEmployeeAddressValue( test.ejb.cmr.EmployeeAddressValue valueHolder )
99    {
100
101       try
102       {
103          setDescription( valueHolder.getDescription() );
104
105       }
106       catch (Exception JavaDoc e)
107       {
108          throw new javax.ejb.EJBException JavaDoc(e);
109       }
110    }
111
112 /* Value Objects END */
113
114    public abstract java.lang.Integer JavaDoc getId() ;
115
116    public abstract void setId( java.lang.Integer JavaDoc id ) ;
117
118    public abstract java.lang.String JavaDoc getDescription() ;
119
120    public abstract void setDescription( java.lang.String JavaDoc description ) ;
121
122 }
123
Popular Tags