KickJava   Java API By Example, From Geeks To Geeks.

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


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  * EntityB.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="EntityB"
40  * jndi-name="EntityB"
41  * view-type="remote"
42  * type="CMP"
43  * cmp-version="2.x"
44  * primkey-field="id"
45  * @ejb:finder signature="java.util.Collection findAll()"
46  * unchecked="yes"
47  * @ejb:pk class="java.lang.Integer"
48  * @ejb:resource-ref res-name="datasource"
49  * res-type="javax.sql.DataSource"
50  * res-auth="Container"
51  * @jboss:resource-ref res-ref-name="datasource"
52  * resource-name="TestDS"
53  * @jboss:resource-manager res-man-name="TestDS"
54  * res-man-jndi-name="java:/XmlDeployTestDS"
55  * @jboss:datasource name="java:/XmlDeployTestDS"
56  * mapping="Hypersonic SQL"
57  */

58
59 public abstract class EntityBBean implements EntityBean JavaDoc
60 {
61    public EntityBBean ()
62    {
63       
64    }
65
66    
67    
68    /**
69     * Abstract cmp2 field get-set pair for field id
70     * Get the value of id
71     * @return value of id
72     *
73     * @ejb:interface-method
74     * @ejb:persistent-field
75     */

76    public abstract Integer JavaDoc getId();
77    
78    /**
79     * Set the value of id
80     * @param id Value to assign to id
81     *
82     * @ejb:interface-method view-type="remote"
83     */

84    public abstract void setId(Integer JavaDoc id);
85    
86    
87    
88    /**
89     * Abstract cmp2 field get-set pair for field value
90     * Get the value of value
91     * @return value of value
92     *
93     * @ejb:interface-method
94     * @ejb:persistent-field
95     */

96    public abstract String JavaDoc getValue();
97    
98    /**
99     * Set the value of value
100     * @param value Value to assign to value
101     *
102     * @ejb:interface-method view-type="remote"
103     */

104    public abstract void setValue(String JavaDoc value);
105    
106
107    
108    public void ejbActivate() throws RemoteException JavaDoc
109    {
110    }
111    
112    public void ejbPassivate() throws RemoteException JavaDoc
113    {
114    }
115    
116    public void ejbLoad() throws RemoteException JavaDoc
117    {
118    }
119    
120    public void ejbStore() throws RemoteException JavaDoc
121    {
122    }
123    
124    public void ejbRemove() throws RemoteException JavaDoc, RemoveException JavaDoc
125    {
126    }
127    
128    public void setEntityContext(EntityContext JavaDoc ctx) throws RemoteException JavaDoc
129    {
130    }
131    
132    public void unsetEntityContext() throws RemoteException JavaDoc
133    {
134    }
135    
136 }// EntityB
137
Popular Tags