KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > ejb > containers > ReadOnlyEJBHomeImpl


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.ejb.containers;
25
26 /**
27  * Implementation of the EJBHome interface.
28  * This class is also the base class for all generated concrete ReadOnly
29  * EJBHome implementations.
30  * At deployment time, one instance of ReadOnlyEJBHomeImpl is created
31  * for each EJB class in a JAR that has a remote home.
32  *
33  * @author Mahesh Kannan
34  */

35
36 public abstract class ReadOnlyEJBHomeImpl
37     extends EJBHomeImpl
38     implements ReadOnlyEJBHome
39 {
40     private ReadOnlyBeanContainer robContainer;
41
42     public ReadOnlyEJBHomeImpl()
43         throws java.rmi.RemoteException JavaDoc
44     {
45         super();
46     }
47
48     /**
49      * Called from ReadOnlyBeanContainer only.
50      */

51     final void setReadOnlyBeanContainer(ReadOnlyBeanContainer container) {
52         this.robContainer = container;
53     }
54
55
56     /***********************************************/
57     /** Implementation of ReadOnlyEJBHome methods **/
58     /***********************************************/
59
60     //Shouldn't be called. deprecated
61
public com.sun.ejb.ReadOnlyBeanNotifier getReadOnlyBeanNotifier()
62         throws java.rmi.RemoteException JavaDoc
63     {
64         throw new java.rmi.RemoteException JavaDoc("Internal ERROR: "
65                 + " getReadOnlyBeanNotifier() called");
66     }
67
68     public void _refresh_com_sun_ejb_containers_read_only_bean_(Object JavaDoc primaryKey)
69         throws java.rmi.RemoteException JavaDoc
70     {
71         robContainer.setRefreshFlag(primaryKey);
72     }
73
74     public void _refresh_All() throws java.rmi.RemoteException JavaDoc
75     {
76         robContainer.refreshAll();
77     }
78 }
79
80
Popular Tags