KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > proxycompiler > beans > ejb > ProxyCompilerTestBean


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.test.proxycompiler.beans.ejb; // Generated package name
23

24 import java.rmi.RemoteException JavaDoc;
25
26 import javax.ejb.EntityBean JavaDoc;
27
28 import javax.ejb.EntityContext JavaDoc;
29 import javax.ejb.CreateException JavaDoc;
30
31 import org.jboss.test.proxycompiler.Util;
32
33 /**
34  * ReadOnlyBean.java
35  *
36  *
37  * Created: Tue Jan 22 17:13:36 2002
38  *
39  * @author <a HREF="mailto:neale@isismanor.co.uk">Neale Swinnerton</a>
40  * @version
41  *
42  *
43  * @ejb:bean name="ProxyCompilerTest"
44  * jndi-name="ProxyCompilerTest"
45  * local-jndi-name="LocalProxyCompilerTest"
46  * view-type="both"
47  * type="CMP"
48  * cmp-version="2.x"
49  * primkey-field="pk"
50  * @ejb:pk class="java.lang.Integer"
51  * @ejb:finder signature="java.util.Collection findAll()"
52  */

53
54 public abstract class ProxyCompilerTestBean implements EntityBean JavaDoc
55 {
56    public ProxyCompilerTestBean ()
57    {
58       
59    }
60
61    /**
62     * @ejb:create-method
63     */

64    public Integer JavaDoc ejbCreate(Integer JavaDoc pk)
65       throws CreateException JavaDoc
66    {
67       setPk(pk);
68       return pk;
69    }
70
71    public void ejbPostCreate(Integer JavaDoc pk)
72    {
73    }
74
75    /**
76     * @ejb:persistent-field
77     * @ejb:interface-method
78     */

79    public abstract Integer JavaDoc getPk();
80
81    /**
82     * @ejb:interface-method
83     */

84    public abstract void setPk(Integer JavaDoc pk);
85
86    /**
87     * @ejb:persistent-field
88     * @ejb:interface-method
89     */

90    public abstract boolean getBool();
91
92    /**
93     * @ejb:interface-method
94     */

95    public abstract void setBool(boolean arg);
96
97    /**
98     * @ejb:persistent-field
99     * @ejb:interface-method
100     */

101    public abstract byte getByte();
102
103    /**
104     * @ejb:interface-method
105     */

106    public abstract void setByte(byte arg);
107
108    /**
109     * @ejb:persistent-field
110     * @ejb:interface-method
111     */

112    public abstract char getChar();
113
114    /**
115     * @ejb:interface-method
116     */

117    public abstract void setChar(char arg);
118
119    /**
120     * @ejb:persistent-field
121     * @ejb:interface-method
122     */

123    public abstract double getDouble();
124
125    /**
126     * @ejb:interface-method
127     */

128    public abstract void setDouble(double arg);
129
130    /**
131     * @ejb:persistent-field
132     * @ejb:interface-method
133     */

134    public abstract float getFloat();
135
136    /**
137     * @ejb:interface-method
138     */

139    public abstract void setFloat(float arg);
140
141    /**
142     * @ejb:persistent-field
143     * @ejb:interface-method
144     */

145    public abstract int getInt();
146
147    /**
148     * @ejb:interface-method
149     */

150    public abstract void setInt(int arg);
151
152    /**
153     * @ejb:persistent-field
154     * @ejb:interface-method
155     */

156    public abstract long getLong();
157
158    /**
159     * @ejb:interface-method
160     */

161    public abstract void setLong(long arg);
162
163    /**
164     * @ejb:persistent-field
165     * @ejb:interface-method
166     */

167    public abstract short getShort();
168
169    /**
170     * @ejb:interface-method
171     */

172    public abstract void setShort(short arg);
173
174    /**
175     * @ejb:persistent-field
176     * @ejb:interface-method
177     */

178    public abstract Object JavaDoc[] getObjectArray();
179
180    /**
181     * @ejb:interface-method
182     */

183    public abstract void setObjectArray(Object JavaDoc[] arg);
184
185    /**
186     * @ejb:persistent-field
187     * @ejb:interface-method
188     */

189    public abstract int[] getIntArray();
190
191    /**
192     * @ejb:interface-method
193     */

194    public abstract void setIntArray(int[] arg);
195
196    /**
197     * @ejb:interface-method
198     */

199    public boolean noArgsMethod() {
200       return true;
201    }
202
203    /**
204     * @ejb:interface-method
205     */

206    public String JavaDoc complexSignatureMethod(int i, Object JavaDoc ref, int[] ints, Object JavaDoc[] objectRefs) {
207       return Util.getStringRepresentation(i, ref, ints, objectRefs);
208    }
209    
210    public void ejbActivate() throws RemoteException JavaDoc
211    {
212    }
213    
214    public void ejbPassivate() throws RemoteException JavaDoc
215    {
216    }
217    
218    public void ejbLoad() throws RemoteException JavaDoc
219    {
220    }
221    
222    public void ejbStore() throws RemoteException JavaDoc
223    {
224    }
225    
226    public void ejbRemove() throws RemoteException JavaDoc
227    {
228    }
229    
230    public void setEntityContext(EntityContext JavaDoc ctx) throws RemoteException JavaDoc
231    {
232    }
233    
234    public void unsetEntityContext() throws RemoteException JavaDoc
235    {
236    }
237    
238 }// ReadOnlyBean
239
Popular Tags