01: /*
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 3532 2003-10-16 13:50:17Z benoitf $
25: * --------------------------------------------------------------------------
26: */
27:
28: package org.objectweb.jonas.jtests.beans.secured;
29:
30: import javax.ejb.CreateException;
31: import javax.ejb.EJBException;
32: import javax.ejb.EntityBean;
33: import javax.ejb.EntityContext;
34: import javax.ejb.RemoveException;
35:
36: /**
37: * @author Alexander Daryin
38: */
39: public abstract class Entity1Bean implements EntityBean {
40: public Entity1Bean() {
41: }
42:
43: public void setEntityContext(EntityContext entityContext)
44: throws EJBException {
45: }
46:
47: public void unsetEntityContext() throws EJBException {
48: }
49:
50: public void ejbRemove() throws RemoveException, EJBException {
51: }
52:
53: public void ejbActivate() throws EJBException {
54: }
55:
56: public void ejbPassivate() throws EJBException {
57: }
58:
59: public void ejbLoad() throws EJBException {
60: }
61:
62: public void ejbStore() throws EJBException {
63: }
64:
65: public Integer ejbCreate(int i, String s) throws CreateException {
66: setId(new Integer(i));
67: setValue(s);
68: return getId();
69: }
70:
71: public void ejbPostCreate(int i, String s) throws CreateException {
72: }
73:
74: public abstract Integer getId();
75:
76: public abstract void setId(Integer id);
77:
78: public abstract String getValue();
79:
80: public abstract void setValue(String value);
81: }
|