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: * --------------------------------------------------------------------------
22: * $Id: JEntityHome.java 6673 2005-04-28 16:53:00Z benoitf $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas_ejb.container;
25:
26: import java.rmi.Remote;
27: import java.rmi.RemoteException;
28:
29: import org.objectweb.jonas_ejb.deployment.api.EntityDesc;
30:
31: import org.objectweb.util.monolog.api.BasicLevel;
32:
33: /**
34: * This class is the Standard Home for Entity objects It exists only for beans
35: * that have declared a Remote Interface. It implements javax.ejb.EJBHome
36: * interface
37: * @author Philippe Coq
38: * @author Philippe Durieux
39: */
40: public abstract class JEntityHome extends JHome implements Remote {
41:
42: /**
43: * constructor
44: * @param dd The Entity Deployment Decriptor
45: * @param bf The Entity Factory
46: * @throws RemoteException failed to create the Home
47: */
48: public JEntityHome(EntityDesc dd, JEntityFactory bf)
49: throws RemoteException {
50: super (dd, bf);
51: if (TraceEjb.isDebugIc()) {
52: TraceEjb.interp.log(BasicLevel.DEBUG, "");
53: }
54: }
55:
56: // ---------------------------------------------------------------
57: // EJBHome implementation
58: // both remove() methods are in the generated part.
59: // other methods are in JHome (identical for Sessions and Entities)
60: // ---------------------------------------------------------------
61:
62: // ---------------------------------------------------------------
63: // other public methods, for internal use.
64: // ---------------------------------------------------------------
65:
66: /**
67: * creates a new Remote Object for that bean. this is in the generated class
68: * because it is mainly "new objectClass()"
69: * @return The Remote Object
70: * @throws RemoteException could not create the remote object
71: */
72: public abstract JEntityRemote createRemoteObject()
73: throws RemoteException;
74: }
|