2
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
6
* The contents of this file are subject to the terms of either the GNU
7
* General Public License Version 2 only ("GPL") or the Common
8
* Development and Distribution License("CDDL") (collectively, the
9
* "License"). You may not use this file except in compliance with the
10
* License. You can obtain a copy of the License at
11
* http://www.netbeans.org/cddl-gplv2.html
12
* or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
* specific language governing permissions and limitations under the
14
* License. When distributing the software, include this License Header
15
* Notice in each file and include the License file at
16
* nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
17
* particular file as subject to the "Classpath" exception as provided
18
* by Sun in the GPL Version 2 section of the License file that
19
* accompanied this code. If applicable, add the following below the
20
* License Header, with the fields enclosed by brackets [] replaced by
21
* your own identifying information:
22
* "Portions Copyrighted [year] [name of copyright owner]"
26
* The Original Software is NetBeans. The Initial Developer of the Original
27
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
28
* Microsystems, Inc. All Rights Reserved.
30
* If you wish your version of this file to be governed by only the CDDL
31
* or only the GPL Version 2, indicate your decision by adding
32
* "[Contributor] elects to include this software in this distribution
33
* under the [CDDL or GPL Version 2] license." If you do not indicate a
34
* single choice of license, a recipient has the option to distribute
35
* your version of this file under either the CDDL, the GPL Version 2 or
36
* to extend the choice of license to its licensees as provided above.
37
* However, if you add GPL Version 2 code and therefore, elected the GPL
38
* Version 2 license, then the option applies only if the new code is
39
* made subject to such option by the copyright holder.
42
package org.netbeans.modules.j2ee.dd.api.ejb;
45
// This interface has all of the bean info accessor methods.
47
import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException;
49
public interface Session extends EntityAndSession {
51
public static final String SERVICE_ENDPOINT = "ServiceEndpoint"; // NOI18N
52
public static final String SESSION_TYPE = "SessionType"; // NOI18N
53
public static final String TRANSACTION_TYPE = "TransactionType"; // NOI18N
54
public static final String SESSION_TYPE_STATEFUL = "Stateful"; // NOI18N
55
public static final String SESSION_TYPE_STATELESS = "Stateless"; // NOI18N
56
public static final String TRANSACTION_TYPE_BEAN = "Bean"; // NOI18N
57
public static final String TRANSACTION_TYPE_CONTAINER = "Container"; // NOI18N
58
public static final String BUSINESS_LOCAL = "BusinessLocal"; // NOI18N
59
public static final String BUSINESS_REMOTE = "BusinessRemote"; // NOI18N
61
public String getSessionType();
63
public void setSessionType(String value);
65
public String getTransactionType();
67
public void setTransactionType(String value);
71
public void setServiceEndpoint(String value) throws VersionNotSupportedException;
73
public String getServiceEndpoint() throws VersionNotSupportedException;
77
void setMappedName(String value) throws VersionNotSupportedException;
78
String getMappedName() throws VersionNotSupportedException;
79
void setBusinessLocal(int index, String value) throws VersionNotSupportedException;
80
String getBusinessLocal(int index) throws VersionNotSupportedException;
81
int sizeBusinessLocal() throws VersionNotSupportedException;
82
void setBusinessLocal(String[] value) throws VersionNotSupportedException;
83
String[] getBusinessLocal() throws VersionNotSupportedException;
84
int addBusinessLocal(String value) throws VersionNotSupportedException;
85
int removeBusinessLocal(String value) throws VersionNotSupportedException;
86
void setBusinessRemote(int index, String value) throws VersionNotSupportedException;
87
String getBusinessRemote(int index) throws VersionNotSupportedException;
88
int sizeBusinessRemote() throws VersionNotSupportedException;
89
void setBusinessRemote(String[] value) throws VersionNotSupportedException;
90
String[] getBusinessRemote() throws VersionNotSupportedException;
91
int addBusinessRemote(String value) throws VersionNotSupportedException;
92
int removeBusinessRemote(String value) throws VersionNotSupportedException;
93
void setTimeoutMethod(NamedMethod valueInterface) throws VersionNotSupportedException;
94
NamedMethod getTimeoutMethod() throws VersionNotSupportedException;
95
void setInitMethod(int index, InitMethod valueInterface) throws VersionNotSupportedException;
96
InitMethod getInitMethod(int index) throws VersionNotSupportedException;
97
int sizeInitMethod() throws VersionNotSupportedException;
98
void setInitMethod(InitMethod[] value) throws VersionNotSupportedException;
99
InitMethod[] getInitMethod() throws VersionNotSupportedException;
100
int addInitMethod(InitMethod valueInterface) throws VersionNotSupportedException;
101
int removeInitMethod(InitMethod valueInterface) throws VersionNotSupportedException;
102
void setRemoveMethod(int index, RemoveMethod valueInterface) throws VersionNotSupportedException;
103
RemoveMethod getRemoveMethod(int index) throws VersionNotSupportedException;
104
int sizeRemoveMethod() throws VersionNotSupportedException;
105
void setRemoveMethod(RemoveMethod[] value) throws VersionNotSupportedException;
106
RemoveMethod[] getRemoveMethod() throws VersionNotSupportedException;
107
int addRemoveMethod(RemoveMethod valueInterface) throws VersionNotSupportedException;
108
int removeRemoveMethod(RemoveMethod valueInterface) throws VersionNotSupportedException;
109
void setAroundInvoke(int index, AroundInvoke valueInterface) throws VersionNotSupportedException;
110
AroundInvoke getAroundInvoke(int index) throws VersionNotSupportedException;
111
int sizeAroundInvoke() throws VersionNotSupportedException;
112
void setAroundInvoke(AroundInvoke[] value) throws VersionNotSupportedException;
113
AroundInvoke[] getAroundInvoke() throws VersionNotSupportedException;
114
int addAroundInvoke(AroundInvoke valueInterface) throws VersionNotSupportedException;
115
int removeAroundInvoke(AroundInvoke valueInterface) throws VersionNotSupportedException;
116
void setPersistenceContextRef(int index, PersistenceContextRef valueInterface) throws VersionNotSupportedException;
117
PersistenceContextRef getPersistenceContextRef(int index) throws VersionNotSupportedException;
118
int sizePersistenceContextRef() throws VersionNotSupportedException;
119
void setPersistenceContextRef(PersistenceContextRef[] value) throws VersionNotSupportedException;
120
PersistenceContextRef[] getPersistenceContextRef() throws VersionNotSupportedException;
121
int addPersistenceContextRef(PersistenceContextRef valueInterface) throws VersionNotSupportedException;
122
int removePersistenceContextRef(PersistenceContextRef valueInterface) throws VersionNotSupportedException;
123
void setPersistenceUnitRef(int index, PersistenceUnitRef valueInterface) throws VersionNotSupportedException;
124
PersistenceUnitRef getPersistenceUnitRef(int index) throws VersionNotSupportedException;
125
int sizePersistenceUnitRef() throws VersionNotSupportedException;
126
void setPersistenceUnitRef(PersistenceUnitRef[] value) throws VersionNotSupportedException;
127
PersistenceUnitRef[] getPersistenceUnitRef() throws VersionNotSupportedException;
128
int addPersistenceUnitRef(PersistenceUnitRef valueInterface) throws VersionNotSupportedException;
129
int removePersistenceUnitRef(PersistenceUnitRef valueInterface) throws VersionNotSupportedException;
130
void setPostConstruct(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
131
LifecycleCallback getPostConstruct(int index) throws VersionNotSupportedException;
132
int sizePostConstruct() throws VersionNotSupportedException;
133
void setPostConstruct(LifecycleCallback[] value) throws VersionNotSupportedException;
134
LifecycleCallback[] getPostConstruct() throws VersionNotSupportedException;
135
int addPostConstruct(LifecycleCallback valueInterface) throws VersionNotSupportedException;
136
int removePostConstruct(LifecycleCallback valueInterface) throws VersionNotSupportedException;
137
void setPreDestroy(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
138
LifecycleCallback getPreDestroy(int index) throws VersionNotSupportedException;
139
int sizePreDestroy() throws VersionNotSupportedException;
140
void setPreDestroy(LifecycleCallback[] value) throws VersionNotSupportedException;
141
LifecycleCallback[] getPreDestroy() throws VersionNotSupportedException;
142
int addPreDestroy(LifecycleCallback valueInterface) throws VersionNotSupportedException;
143
int removePreDestroy(LifecycleCallback valueInterface) throws VersionNotSupportedException;
144
void setPostActivate(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
145
LifecycleCallback getPostActivate(int index) throws VersionNotSupportedException;
146
int sizePostActivate() throws VersionNotSupportedException;
147
void setPostActivate(LifecycleCallback[] value) throws VersionNotSupportedException;
148
LifecycleCallback[] getPostActivate() throws VersionNotSupportedException;
149
int addPostActivate(LifecycleCallback valueInterface) throws VersionNotSupportedException;
150
int removePostActivate(LifecycleCallback valueInterface) throws VersionNotSupportedException;
151
void setPrePassivate(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
152
LifecycleCallback getPrePassivate(int index) throws VersionNotSupportedException;
153
int sizePrePassivate() throws VersionNotSupportedException;
154
void setPrePassivate(LifecycleCallback[] value) throws VersionNotSupportedException;
155
LifecycleCallback[] getPrePassivate() throws VersionNotSupportedException;
156
int addPrePassivate(LifecycleCallback valueInterface) throws VersionNotSupportedException;
157
int removePrePassivate(LifecycleCallback valueInterface) throws VersionNotSupportedException;
158
NamedMethod newNamedMethod() throws VersionNotSupportedException;
159
InitMethod newInitMethod() throws VersionNotSupportedException;
160
RemoveMethod newRemoveMethod() throws VersionNotSupportedException;
161
AroundInvoke newAroundInvoke() throws VersionNotSupportedException;
162
PersistenceContextRef newPersistenceContextRef() throws VersionNotSupportedException;
163
PersistenceUnitRef newPersistenceUnitRef() throws VersionNotSupportedException;
164
LifecycleCallback newLifecycleCallback() throws VersionNotSupportedException;