KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jmx > ejb > EntityABean


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.jmx.ejb;
23
24
25 import java.rmi.RemoteException JavaDoc;
26 import javax.ejb.EntityBean JavaDoc;
27 import javax.ejb.EntityContext JavaDoc;
28 import javax.ejb.RemoveException JavaDoc;
29 /**
30  * EntityA.java
31  *
32  *
33  * Created: Wed Mar 6 20:08:11 2002
34  *
35  * @author <a HREF="mailto:d_jencks@users.sourceforge.net">David Jencks</a>
36  * @version
37  *
38  *
39  * @ejb:bean name="EntityA"
40  * jndi-name="EntityA"
41  * view-type="remote"
42  * type="CMP"
43  * cmp-version="2.x"
44  * primkey-field="id"
45  * @ejb:pk class="java.lang.Integer"
46  * @ejb:finder signature="java.util.Collection findAll()"
47  * unchecked="yes"
48  */

49
50 public abstract class EntityABean implements EntityBean JavaDoc
51 {
52    public EntityABean ()
53    {
54       
55    }
56
57    
58    
59    /**
60     * Abstract cmp2 field get-set pair for field id
61     * Get the value of id
62     * @return value of id
63     *
64     * @ejb:interface-method
65     * @ejb:persistent-field
66     */

67    public abstract Integer JavaDoc getId();
68    
69    /**
70     * Set the value of id
71     * @param id Value to assign to id
72     *
73     * @ejb:interface-method view-type="remote"
74     */

75    public abstract void setId(Integer JavaDoc id);
76    
77    
78    
79    /**
80     * Abstract cmp2 field get-set pair for field value
81     * Get the value of value
82     * @return value of value
83     *
84     * @ejb:interface-method
85     * @ejb:persistent-field
86     */

87    public abstract String JavaDoc getValue();
88    
89    /**
90     * Set the value of value
91     * @param value Value to assign to value
92     *
93     * @ejb:interface-method view-type="remote"
94     */

95    public abstract void setValue(String JavaDoc value);
96    
97
98    
99    public void ejbActivate() throws RemoteException JavaDoc
100    {
101    }
102    
103    public void ejbPassivate() throws RemoteException JavaDoc
104    {
105    }
106    
107    public void ejbLoad() throws RemoteException JavaDoc
108    {
109    }
110    
111    public void ejbStore() throws RemoteException JavaDoc
112    {
113    }
114    
115    public void ejbRemove() throws RemoteException JavaDoc, RemoveException JavaDoc
116    {
117    }
118    
119    public void setEntityContext(EntityContext JavaDoc ctx) throws RemoteException JavaDoc
120    {
121    }
122    
123    public void unsetEntityContext() throws RemoteException JavaDoc
124    {
125    }
126    
127 }// EntityA
128
Popular Tags