KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > ejb > AddressCMP


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

4 package test.ejb;
5
6 /**
7  * CMP layer for Address.
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 AddressCMP
14    extends test.ejb.AddressBean
15    implements javax.ejb.EntityBean JavaDoc
16 {
17
18    public test.interfaces.AddressData getData()
19    {
20       test.interfaces.AddressData dataHolder = null;
21       try
22       {
23          dataHolder = new test.interfaces.AddressData();
24
25          dataHolder.setId( getId() );
26          dataHolder.setStreet( getStreet() );
27          dataHolder.setCity( getCity() );
28          dataHolder.setReadOnly( getReadOnly() );
29          dataHolder.setCreationDate( getCreationDate() );
30
31       }
32       catch (RuntimeException JavaDoc e)
33       {
34          throw new javax.ejb.EJBException JavaDoc(e);
35       }
36
37       return dataHolder;
38    }
39
40    public void ejbLoad() throws javax.ejb.EJBException JavaDoc
41    {
42       super.ejbLoad();
43    }
44
45    public void ejbStore() throws javax.ejb.EJBException JavaDoc
46    {
47          super.ejbStore();
48    }
49
50    public void ejbActivate() throws javax.ejb.EJBException JavaDoc
51    {
52       super.ejbActivate();
53    }
54
55    public void ejbPassivate() throws javax.ejb.EJBException JavaDoc
56    {
57       super.ejbPassivate();
58
59       AddressValue = null;
60    }
61
62    public void setEntityContext(javax.ejb.EntityContext JavaDoc ctx) throws javax.ejb.EJBException JavaDoc
63    {
64       super.setEntityContext(ctx);
65    }
66
67    public void unsetEntityContext() throws javax.ejb.EJBException JavaDoc
68    {
69       super.unsetEntityContext();
70    }
71
72    public void ejbRemove() throws javax.ejb.EJBException JavaDoc, javax.ejb.RemoveException JavaDoc
73    {
74       super.ejbRemove();
75
76    }
77
78  /* Value Objects BEGIN */
79
80    private test.interfaces.AddressValue AddressValue = null;
81
82    public test.interfaces.AddressValue getAddressValue()
83    {
84       AddressValue = new test.interfaces.AddressValue();
85       try
86          {
87             AddressValue.setId( getId() );
88
89          }
90          catch (Exception JavaDoc e)
91          {
92             throw new javax.ejb.EJBException JavaDoc(e);
93          }
94
95       return AddressValue;
96    }
97
98    public void setAddressValue( test.interfaces.AddressValue valueHolder )
99    {
100
101       try
102       {
103
104       }
105       catch (Exception JavaDoc e)
106       {
107          throw new javax.ejb.EJBException JavaDoc(e);
108       }
109    }
110
111 /* Value Objects END */
112
113    public abstract java.lang.String JavaDoc getId() ;
114
115    public abstract void setId( java.lang.String JavaDoc id ) ;
116
117    public abstract java.lang.String JavaDoc getStreet() ;
118
119    public abstract void setStreet( java.lang.String JavaDoc street ) ;
120
121    public abstract java.lang.String JavaDoc getCity() ;
122
123    public abstract void setCity( java.lang.String JavaDoc city ) ;
124
125    public abstract int getReadOnly() ;
126
127    public abstract void setReadOnly( int readOnly ) ;
128
129    public abstract java.util.Date JavaDoc getCreationDate() ;
130
131    public abstract void setCreationDate( java.util.Date JavaDoc creationDate ) ;
132
133 }
134
Popular Tags