KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > beans > secured > Entity1Bean


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * Initial developer(s): Alexander Daryin
22  *
23  * --------------------------------------------------------------------------
24  * $Id: Entity1Bean.java,v 1.1 2003/10/16 13:50:16 benoitf Exp $
25  * --------------------------------------------------------------------------
26  */

27
28 package org.objectweb.jonas.jtests.beans.secured;
29
30 import javax.ejb.CreateException JavaDoc;
31 import javax.ejb.EJBException JavaDoc;
32 import javax.ejb.EntityBean JavaDoc;
33 import javax.ejb.EntityContext JavaDoc;
34 import javax.ejb.RemoveException JavaDoc;
35
36 /**
37  * @author Alexander Daryin
38  */

39 public abstract class Entity1Bean implements EntityBean JavaDoc {
40     public Entity1Bean() {
41     }
42
43     public void setEntityContext(EntityContext JavaDoc entityContext) throws EJBException JavaDoc {
44     }
45
46     public void unsetEntityContext() throws EJBException JavaDoc {
47     }
48
49     public void ejbRemove() throws RemoveException JavaDoc, EJBException JavaDoc {
50     }
51
52     public void ejbActivate() throws EJBException JavaDoc {
53     }
54
55     public void ejbPassivate() throws EJBException JavaDoc {
56     }
57
58     public void ejbLoad() throws EJBException JavaDoc {
59     }
60
61     public void ejbStore() throws EJBException JavaDoc {
62     }
63
64     public Integer JavaDoc ejbCreate(int i, String JavaDoc s) throws CreateException JavaDoc {
65         setId(new Integer JavaDoc(i));
66         setValue(s);
67         return getId();
68     }
69
70     public void ejbPostCreate(int i, String JavaDoc s) throws CreateException JavaDoc {
71     }
72
73     public abstract Integer JavaDoc getId();
74
75     public abstract void setId(Integer JavaDoc id);
76
77     public abstract String JavaDoc getValue();
78
79     public abstract void setValue(String JavaDoc value);
80 }
81
Popular Tags