KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > dd > api > ejb > Ejb


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.j2ee.dd.api.ejb;
21
22 //
23
// This interface has all of the bean info accessor methods.
24
//
25

26 import org.netbeans.modules.j2ee.dd.api.common.CommonDDBean;
27 import org.netbeans.modules.j2ee.dd.api.common.ComponentInterface;
28 import org.netbeans.modules.j2ee.dd.api.common.EjbLocalRef;
29 import org.netbeans.modules.j2ee.dd.api.common.EjbRef;
30 import org.netbeans.modules.j2ee.dd.api.common.ResourceRef;
31 import org.netbeans.modules.j2ee.dd.api.common.ServiceRef;
32 import org.netbeans.modules.j2ee.dd.api.common.EnvEntry;
33 import org.netbeans.modules.j2ee.dd.api.common.ResourceEnvRef;
34 import org.netbeans.modules.j2ee.dd.api.common.MessageDestinationRef;
35 import org.netbeans.modules.j2ee.dd.api.common.EnvEntry;
36 import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException;
37
38 public interface Ejb extends CommonDDBean, ComponentInterface {
39     
40         //Entity & Session & Message Driven
41
public static final String JavaDoc EJB_NAME = "EjbName"; // NOI18N
42
public static final String JavaDoc EJB_CLASS = "EjbClass"; // NOI18N
43
public static final String JavaDoc ENV_ENTRY = "EnvEntry"; // NOI18N
44
public static final String JavaDoc EJB_REF = "EjbRef"; // NOI18N
45
public static final String JavaDoc EJB_LOCAL_REF = "EjbLocalRef"; // NOI18N
46
public static final String JavaDoc SERVICE_REF = "ServiceRef"; // NOI18N
47
public static final String JavaDoc RESOURCE_REF = "ResourceRef"; // NOI18N
48
public static final String JavaDoc RESOURCE_ENV_REF = "ResourceEnvRef"; // NOI18N
49
public static final String JavaDoc MESSAGE_DESTINATION_REF = "MessageDestinationRef"; // NOI18N
50
public static final String JavaDoc SECURITY_IDENTITY = "SecurityIdentity"; // NOI18N
51

52         public EjbJar getRoot();
53
54         public String JavaDoc getEjbName();
55         
56         public void setEjbName(String JavaDoc value);
57         
58         public String JavaDoc getEjbClass();
59         
60         public void setEjbClass(String JavaDoc value);
61         
62         public void setEnvEntry(int index, EnvEntry value);
63         
64         public EnvEntry getEnvEntry(int index);
65         
66         public void setEnvEntry(EnvEntry[] value);
67         
68         public EnvEntry[] getEnvEntry();
69         
70         public int addEnvEntry(EnvEntry value);
71         
72         public int removeEnvEntry(EnvEntry value);
73         
74         public int sizeEnvEntry();
75         
76         public EnvEntry newEnvEntry();
77         
78         public void setEjbRef(int index, EjbRef value);
79         
80         public EjbRef getEjbRef(int index);
81         
82         public void setEjbRef(EjbRef[] value);
83         
84         public EjbRef[] getEjbRef();
85         
86         public int removeEjbRef(org.netbeans.modules.j2ee.dd.api.common.EjbRef value);
87         
88         public int addEjbRef(org.netbeans.modules.j2ee.dd.api.common.EjbRef value);
89         
90         public int sizeEjbRef();
91         
92         public EjbRef newEjbRef();
93         
94         public void setEjbLocalRef(int index, EjbLocalRef value);
95         
96         public EjbLocalRef getEjbLocalRef(int index);
97         
98         public void setEjbLocalRef(EjbLocalRef[] value);
99         
100         public EjbLocalRef[] getEjbLocalRef();
101         
102         public int addEjbLocalRef(org.netbeans.modules.j2ee.dd.api.common.EjbLocalRef value);
103         
104         public int removeEjbLocalRef(org.netbeans.modules.j2ee.dd.api.common.EjbLocalRef value);
105         
106         public int sizeEjbLocalRef();
107                 
108         public EjbLocalRef newEjbLocalRef();
109         
110         public SecurityIdentity getSecurityIdentity ();
111         
112         public void setSecurityIdentity (SecurityIdentity value);
113         
114         public SecurityIdentity newSecurityIdentity();
115         
116         public void setResourceRef(int index, ResourceRef value);
117         
118         public ResourceRef getResourceRef(int index);
119         
120         public void setResourceRef(ResourceRef[] value);
121         
122         public ResourceRef[] getResourceRef();
123         
124         public int removeResourceRef(org.netbeans.modules.j2ee.dd.api.common.ResourceRef value);
125
126     public int sizeResourceRef();
127         
128         public int addResourceRef(org.netbeans.modules.j2ee.dd.api.common.ResourceRef value);
129         
130         public ResourceRef newResourceRef();
131         
132         public void setResourceEnvRef(int index, ResourceEnvRef value);
133         
134         public ResourceEnvRef getResourceEnvRef(int index);
135         
136         public void setResourceEnvRef(ResourceEnvRef[] value);
137         
138         public ResourceEnvRef[] getResourceEnvRef();
139         
140         public int sizeResourceEnvRef();
141         
142         public int addResourceEnvRef(ResourceEnvRef value);
143
144     public int removeResourceEnvRef(ResourceEnvRef value);
145         
146         public ResourceEnvRef newResourceEnvRef();
147         
148         //2.1
149
public void setMessageDestinationRef(int index, MessageDestinationRef value) throws VersionNotSupportedException;
150
151         public MessageDestinationRef getMessageDestinationRef(int index) throws VersionNotSupportedException;
152
153         public void setMessageDestinationRef(MessageDestinationRef[] value) throws VersionNotSupportedException;
154
155         public MessageDestinationRef[] getMessageDestinationRef() throws VersionNotSupportedException;
156         
157         public int removeMessageDestinationRef(MessageDestinationRef value) throws VersionNotSupportedException;
158
159     public int sizeMessageDestinationRef() throws VersionNotSupportedException;
160         
161         public int addMessageDestinationRef(MessageDestinationRef value) throws VersionNotSupportedException;
162
163         public MessageDestinationRef newMessageDestinationRef() throws VersionNotSupportedException;
164         
165         public void setServiceRef(int index, ServiceRef value) throws VersionNotSupportedException;
166
167         public ServiceRef getServiceRef(int index) throws VersionNotSupportedException;
168
169         public void setServiceRef(ServiceRef[] value) throws VersionNotSupportedException;
170
171         public ServiceRef[] getServiceRef() throws VersionNotSupportedException;
172         
173         public int removeServiceRef(ServiceRef value) throws VersionNotSupportedException;
174
175         public int sizeServiceRef() throws VersionNotSupportedException;
176
177     public int addServiceRef(ServiceRef value) throws VersionNotSupportedException;
178
179         public ServiceRef newServiceRef() throws VersionNotSupportedException;
180          
181 }
182
183
Popular Tags