KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > 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  * Ejb.java
21  *
22  * Created on November 17, 2004, 4:45 PM
23  */

24
25 package org.netbeans.modules.j2ee.sun.dd.api.ejb;
26
27 import org.netbeans.modules.j2ee.sun.dd.api.VersionNotSupportedException;
28
29
30 import org.netbeans.modules.j2ee.sun.dd.api.common.EjbRef;
31 import org.netbeans.modules.j2ee.sun.dd.api.common.ResourceRef;
32 import org.netbeans.modules.j2ee.sun.dd.api.common.WebserviceEndpoint;
33 import org.netbeans.modules.j2ee.sun.dd.api.common.ResourceEnvRef;
34 import org.netbeans.modules.j2ee.sun.dd.api.common.ServiceRef;
35 import org.netbeans.modules.j2ee.sun.dd.api.common.MessageDestinationRef;
36
37 /**
38  *
39  * @author Nitya Doraisamy
40  */

41 public interface Ejb extends org.netbeans.modules.j2ee.sun.dd.api.CommonDDBean {
42     
43     public static final String JavaDoc EJB_NAME = "EjbName"; // NOI18N
44
public static final String JavaDoc JNDI_NAME = "JndiName"; // NOI18N
45
public static final String JavaDoc EJB_REF = "EjbRef"; // NOI18N
46
public static final String JavaDoc RESOURCE_REF = "ResourceRef"; // NOI18N
47
public static final String JavaDoc RESOURCE_ENV_REF = "ResourceEnvRef"; // NOI18N
48
public static final String JavaDoc SERVICE_REF = "ServiceRef"; // NOI18N
49
public static final String JavaDoc PASS_BY_REFERENCE = "PassByReference"; // NOI18N
50
public static final String JavaDoc CMP = "Cmp"; // NOI18N
51
public static final String JavaDoc PRINCIPAL = "Principal"; // NOI18N
52
public static final String JavaDoc MDB_CONNECTION_FACTORY = "MdbConnectionFactory"; // NOI18N
53
public static final String JavaDoc JMS_DURABLE_SUBSCRIPTION_NAME = "JmsDurableSubscriptionName"; // NOI18N
54
public static final String JavaDoc JMS_MAX_MESSAGES_LOAD = "JmsMaxMessagesLoad"; // NOI18N
55
public static final String JavaDoc IOR_SECURITY_CONFIG = "IorSecurityConfig"; // NOI18N
56
public static final String JavaDoc IS_READ_ONLY_BEAN = "IsReadOnlyBean"; // NOI18N
57
public static final String JavaDoc REFRESH_PERIOD_IN_SECONDS = "RefreshPeriodInSeconds"; // NOI18N
58
public static final String JavaDoc COMMIT_OPTION = "CommitOption"; // NOI18N
59
public static final String JavaDoc CMT_TIMEOUT_IN_SECONDS = "CmtTimeoutInSeconds"; // NOI18N
60
public static final String JavaDoc GEN_CLASSES = "GenClasses"; // NOI18N
61
public static final String JavaDoc BEAN_POOL = "BeanPool"; // NOI18N
62
public static final String JavaDoc BEAN_CACHE = "BeanCache"; // NOI18N
63
public static final String JavaDoc MDB_RESOURCE_ADAPTER = "MdbResourceAdapter"; // NOI18N
64
public static final String JavaDoc WEBSERVICE_ENDPOINT = "WebserviceEndpoint"; // NOI18N
65
public static final String JavaDoc FLUSH_AT_END_OF_METHOD = "FlushAtEndOfMethod"; // NOI18N
66
public static final String JavaDoc CHECKPOINTED_METHODS = "CheckpointedMethods"; // NOI18N
67
public static final String JavaDoc CHECKPOINT_AT_END_OF_METHOD = "CheckpointAtEndOfMethod"; // NOI18N
68
public static final String JavaDoc AVAILABILITYENABLED = "AvailabilityEnabled"; // NOI18N
69
public static final String JavaDoc MESSAGE_DESTINATION_REF = "MessageDestinationRef"; // NOI18N
70

71     public void setEjbName(java.lang.String JavaDoc value);
72     public java.lang.String JavaDoc getEjbName();
73     
74     public void setJndiName(java.lang.String JavaDoc value);
75     public java.lang.String JavaDoc getJndiName();
76     
77     public EjbRef[] getEjbRef();
78     public EjbRef getEjbRef(int index);
79     public void setEjbRef(EjbRef[] value);
80     public void setEjbRef(int index, EjbRef value);
81     public int addEjbRef(EjbRef value);
82     public int removeEjbRef(EjbRef value);
83     public int sizeEjbRef();
84     public EjbRef newEjbRef();
85     
86     public ResourceRef[] getResourceRef();
87     public ResourceRef getResourceRef(int index);
88     public void setResourceRef(ResourceRef[] value);
89     public void setResourceRef(int index, ResourceRef value);
90     public int addResourceRef(ResourceRef value);
91     public int removeResourceRef(ResourceRef value);
92     public int sizeResourceRef();
93     public ResourceRef newResourceRef();
94     
95     public ResourceEnvRef[] getResourceEnvRef();
96     public ResourceEnvRef getResourceEnvRef(int index);
97     public void setResourceEnvRef(ResourceEnvRef[] value);
98     public void setResourceEnvRef(int index, ResourceEnvRef value);
99     public int addResourceEnvRef(ResourceEnvRef value);
100     public int removeResourceEnvRef(ResourceEnvRef value);
101     public int sizeResourceEnvRef();
102     public ResourceEnvRef newResourceEnvRef();
103     
104     public ServiceRef[] getServiceRef();
105     public ServiceRef getServiceRef(int index);
106     public void setServiceRef(ServiceRef[] value);
107     public void setServiceRef(int index, ServiceRef value);
108     public int addServiceRef(ServiceRef value);
109     public int removeServiceRef(ServiceRef value);
110     public int sizeServiceRef();
111     public ServiceRef newServiceRef();
112     
113     public void setPassByReference(java.lang.String JavaDoc value);
114     public java.lang.String JavaDoc getPassByReference();
115     
116     public void setCmp(Cmp value);
117     public Cmp getCmp();
118     public Cmp newCmp();
119     
120     public void setPrincipal(Principal value);
121     public Principal getPrincipal();
122     public Principal newPrincipal();
123     
124     public void setMdbConnectionFactory(MdbConnectionFactory value);
125     public MdbConnectionFactory getMdbConnectionFactory();
126     public MdbConnectionFactory newMdbConnectionFactory();
127     
128     public void setJmsDurableSubscriptionName(java.lang.String JavaDoc value);
129     public java.lang.String JavaDoc getJmsDurableSubscriptionName();
130     
131     public void setJmsMaxMessagesLoad(java.lang.String JavaDoc value);
132     public java.lang.String JavaDoc getJmsMaxMessagesLoad();
133     
134     public void setIorSecurityConfig(IorSecurityConfig value);
135     public IorSecurityConfig getIorSecurityConfig();
136     public IorSecurityConfig newIorSecurityConfig();
137     
138     public void setIsReadOnlyBean(java.lang.String JavaDoc value);
139     public java.lang.String JavaDoc getIsReadOnlyBean();
140     
141     public void setRefreshPeriodInSeconds(java.lang.String JavaDoc value);
142     public java.lang.String JavaDoc getRefreshPeriodInSeconds();
143     
144     public void setCommitOption(java.lang.String JavaDoc value);
145     public java.lang.String JavaDoc getCommitOption();
146     
147     public void setCmtTimeoutInSeconds(java.lang.String JavaDoc value);
148     public java.lang.String JavaDoc getCmtTimeoutInSeconds();
149     
150     public void setGenClasses(GenClasses value);
151     public GenClasses getGenClasses();
152     
153     public void setBeanPool(BeanPool value);
154     public BeanPool getBeanPool();
155     public BeanPool newBeanPool();
156     
157     public void setBeanCache(BeanCache value);
158     public BeanCache getBeanCache();
159     public BeanCache newBeanCache();
160     
161     public void setMdbResourceAdapter(MdbResourceAdapter value);
162     public MdbResourceAdapter getMdbResourceAdapter();
163     public MdbResourceAdapter newMdbResourceAdapter();
164     
165     public WebserviceEndpoint[] getWebserviceEndpoint();
166     public WebserviceEndpoint getWebserviceEndpoint(int index);
167     public void setWebserviceEndpoint(WebserviceEndpoint[] value);
168     public void setWebserviceEndpoint(int index, WebserviceEndpoint value);
169     public int addWebserviceEndpoint(WebserviceEndpoint value);
170     public int removeWebserviceEndpoint(WebserviceEndpoint value);
171     public int sizeWebserviceEndpoint();
172     public WebserviceEndpoint newWebserviceEndpoint();
173  
174     //AppServer 8.1
175
/** Setter for flush-at-end-of-method property
176      * @param value property value
177      */

178     public void setFlushAtEndOfMethod (FlushAtEndOfMethod value) throws VersionNotSupportedException;
179     /** Getter for flush-at-end-of-method property.
180      * @return property value
181      */

182     public FlushAtEndOfMethod getFlushAtEndOfMethod () throws VersionNotSupportedException;
183     /** Setter for checkpointed-methods property
184      * @param value property value
185      */

186     
187     public FlushAtEndOfMethod newFlushAtEndOfMethod() throws VersionNotSupportedException;
188     
189     public void setCheckpointedMethods (java.lang.String JavaDoc value) throws VersionNotSupportedException;
190     /** Getter for checkpointed-methods property.
191      * @return property value
192      */

193     public java.lang.String JavaDoc getCheckpointedMethods () throws VersionNotSupportedException;
194     /** Setter for checkpoint-at-end-of-method property
195      * @param value property value
196      */

197     public void setCheckpointAtEndOfMethod (CheckpointAtEndOfMethod value) throws VersionNotSupportedException;
198     /** Getter for checkpoint-at-end-of-method property.
199      * @return property value
200      */

201     public CheckpointAtEndOfMethod getCheckpointAtEndOfMethod () throws VersionNotSupportedException;
202     
203     public CheckpointAtEndOfMethod newCheckpointAtEndOfMethod() throws VersionNotSupportedException;
204     
205     /** Setter for availability-enabled attribute
206      * @param value attribute value
207      */

208     public void setAvailabilityEnabled(java.lang.String JavaDoc value) throws VersionNotSupportedException;
209     /** Getter for availability-enabled attribute.
210      * @return attribute value
211      */

212     public java.lang.String JavaDoc getAvailabilityEnabled() throws VersionNotSupportedException;
213     
214     //Required for ejb 3.0
215
public void setMessageDestinationRef(int index, MessageDestinationRef value) throws VersionNotSupportedException;
216     public MessageDestinationRef getMessageDestinationRef(int index) throws VersionNotSupportedException;
217     public int sizeMessageDestinationRef() throws VersionNotSupportedException;
218     public void setMessageDestinationRef(MessageDestinationRef[] value) throws VersionNotSupportedException;
219     public MessageDestinationRef[] getMessageDestinationRef() throws VersionNotSupportedException;
220     public int addMessageDestinationRef(MessageDestinationRef value) throws VersionNotSupportedException;
221     public int removeMessageDestinationRef(MessageDestinationRef value) throws VersionNotSupportedException;
222     public MessageDestinationRef newMessageDestinationRef() throws VersionNotSupportedException;
223     
224 }
225
Popular Tags