KickJava   Java API By Example, From Geeks To Geeks.

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


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
import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException;
26
27 public interface Session extends EntityAndSession {
28
29     public static final String JavaDoc SERVICE_ENDPOINT = "ServiceEndpoint"; // NOI18N
30
public static final String JavaDoc SESSION_TYPE = "SessionType"; // NOI18N
31
public static final String JavaDoc TRANSACTION_TYPE = "TransactionType"; // NOI18N
32
public static final String JavaDoc SESSION_TYPE_STATEFUL = "Stateful"; // NOI18N
33
public static final String JavaDoc SESSION_TYPE_STATELESS = "Stateless"; // NOI18N
34
public static final String JavaDoc TRANSACTION_TYPE_BEAN = "Bean"; // NOI18N
35
public static final String JavaDoc TRANSACTION_TYPE_CONTAINER = "Container"; // NOI18N
36
public static final String JavaDoc BUSINESS_LOCAL = "BusinessLocal"; // NOI18N
37
public static final String JavaDoc BUSINESS_REMOTE = "BusinessRemote"; // NOI18N
38

39     public String JavaDoc getSessionType();
40     
41     public void setSessionType(String JavaDoc value);
42
43     public String JavaDoc getTransactionType();
44     
45     public void setTransactionType(String JavaDoc value);
46
47     //2.1
48

49     public void setServiceEndpoint(String JavaDoc value) throws VersionNotSupportedException;
50     
51     public String JavaDoc getServiceEndpoint() throws VersionNotSupportedException;
52     
53     // EJB 3.0
54

55     void setMappedName(String JavaDoc value) throws VersionNotSupportedException;
56     String JavaDoc getMappedName() throws VersionNotSupportedException;
57     void setBusinessLocal(int index, String JavaDoc value) throws VersionNotSupportedException;
58     String JavaDoc getBusinessLocal(int index) throws VersionNotSupportedException;
59     int sizeBusinessLocal() throws VersionNotSupportedException;
60     void setBusinessLocal(String JavaDoc[] value) throws VersionNotSupportedException;
61     String JavaDoc[] getBusinessLocal() throws VersionNotSupportedException;
62     int addBusinessLocal(String JavaDoc value) throws VersionNotSupportedException;
63     int removeBusinessLocal(String JavaDoc value) throws VersionNotSupportedException;
64     void setBusinessRemote(int index, String JavaDoc value) throws VersionNotSupportedException;
65     String JavaDoc getBusinessRemote(int index) throws VersionNotSupportedException;
66     int sizeBusinessRemote() throws VersionNotSupportedException;
67     void setBusinessRemote(String JavaDoc[] value) throws VersionNotSupportedException;
68     String JavaDoc[] getBusinessRemote() throws VersionNotSupportedException;
69     int addBusinessRemote(String JavaDoc value) throws VersionNotSupportedException;
70     int removeBusinessRemote(String JavaDoc value) throws VersionNotSupportedException;
71     void setTimeoutMethod(NamedMethod valueInterface) throws VersionNotSupportedException;
72     NamedMethod getTimeoutMethod() throws VersionNotSupportedException;
73     void setInitMethod(int index, InitMethod valueInterface) throws VersionNotSupportedException;
74     InitMethod getInitMethod(int index) throws VersionNotSupportedException;
75     int sizeInitMethod() throws VersionNotSupportedException;
76     void setInitMethod(InitMethod[] value) throws VersionNotSupportedException;
77     InitMethod[] getInitMethod() throws VersionNotSupportedException;
78     int addInitMethod(InitMethod valueInterface) throws VersionNotSupportedException;
79     int removeInitMethod(InitMethod valueInterface) throws VersionNotSupportedException;
80     void setRemoveMethod(int index, RemoveMethod valueInterface) throws VersionNotSupportedException;
81     RemoveMethod getRemoveMethod(int index) throws VersionNotSupportedException;
82     int sizeRemoveMethod() throws VersionNotSupportedException;
83     void setRemoveMethod(RemoveMethod[] value) throws VersionNotSupportedException;
84     RemoveMethod[] getRemoveMethod() throws VersionNotSupportedException;
85     int addRemoveMethod(RemoveMethod valueInterface) throws VersionNotSupportedException;
86     int removeRemoveMethod(RemoveMethod valueInterface) throws VersionNotSupportedException;
87     void setAroundInvoke(int index, AroundInvoke valueInterface) throws VersionNotSupportedException;
88     AroundInvoke getAroundInvoke(int index) throws VersionNotSupportedException;
89     int sizeAroundInvoke() throws VersionNotSupportedException;
90     void setAroundInvoke(AroundInvoke[] value) throws VersionNotSupportedException;
91     AroundInvoke[] getAroundInvoke() throws VersionNotSupportedException;
92     int addAroundInvoke(AroundInvoke valueInterface) throws VersionNotSupportedException;
93     int removeAroundInvoke(AroundInvoke valueInterface) throws VersionNotSupportedException;
94     void setPersistenceContextRef(int index, PersistenceContextRef valueInterface) throws VersionNotSupportedException;
95     PersistenceContextRef getPersistenceContextRef(int index) throws VersionNotSupportedException;
96     int sizePersistenceContextRef() throws VersionNotSupportedException;
97     void setPersistenceContextRef(PersistenceContextRef[] value) throws VersionNotSupportedException;
98     PersistenceContextRef[] getPersistenceContextRef() throws VersionNotSupportedException;
99     int addPersistenceContextRef(PersistenceContextRef valueInterface) throws VersionNotSupportedException;
100     int removePersistenceContextRef(PersistenceContextRef valueInterface) throws VersionNotSupportedException;
101     void setPersistenceUnitRef(int index, PersistenceUnitRef valueInterface) throws VersionNotSupportedException;
102     PersistenceUnitRef getPersistenceUnitRef(int index) throws VersionNotSupportedException;
103     int sizePersistenceUnitRef() throws VersionNotSupportedException;
104     void setPersistenceUnitRef(PersistenceUnitRef[] value) throws VersionNotSupportedException;
105     PersistenceUnitRef[] getPersistenceUnitRef() throws VersionNotSupportedException;
106     int addPersistenceUnitRef(PersistenceUnitRef valueInterface) throws VersionNotSupportedException;
107     int removePersistenceUnitRef(PersistenceUnitRef valueInterface) throws VersionNotSupportedException;
108     void setPostConstruct(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
109     LifecycleCallback getPostConstruct(int index) throws VersionNotSupportedException;
110     int sizePostConstruct() throws VersionNotSupportedException;
111     void setPostConstruct(LifecycleCallback[] value) throws VersionNotSupportedException;
112     LifecycleCallback[] getPostConstruct() throws VersionNotSupportedException;
113     int addPostConstruct(LifecycleCallback valueInterface) throws VersionNotSupportedException;
114     int removePostConstruct(LifecycleCallback valueInterface) throws VersionNotSupportedException;
115     void setPreDestroy(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
116     LifecycleCallback getPreDestroy(int index) throws VersionNotSupportedException;
117     int sizePreDestroy() throws VersionNotSupportedException;
118     void setPreDestroy(LifecycleCallback[] value) throws VersionNotSupportedException;
119     LifecycleCallback[] getPreDestroy() throws VersionNotSupportedException;
120     int addPreDestroy(LifecycleCallback valueInterface) throws VersionNotSupportedException;
121     int removePreDestroy(LifecycleCallback valueInterface) throws VersionNotSupportedException;
122     void setPostActivate(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
123     LifecycleCallback getPostActivate(int index) throws VersionNotSupportedException;
124     int sizePostActivate() throws VersionNotSupportedException;
125     void setPostActivate(LifecycleCallback[] value) throws VersionNotSupportedException;
126     LifecycleCallback[] getPostActivate() throws VersionNotSupportedException;
127     int addPostActivate(LifecycleCallback valueInterface) throws VersionNotSupportedException;
128     int removePostActivate(LifecycleCallback valueInterface) throws VersionNotSupportedException;
129     void setPrePassivate(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
130     LifecycleCallback getPrePassivate(int index) throws VersionNotSupportedException;
131     int sizePrePassivate() throws VersionNotSupportedException;
132     void setPrePassivate(LifecycleCallback[] value) throws VersionNotSupportedException;
133     LifecycleCallback[] getPrePassivate() throws VersionNotSupportedException;
134     int addPrePassivate(LifecycleCallback valueInterface) throws VersionNotSupportedException;
135     int removePrePassivate(LifecycleCallback valueInterface) throws VersionNotSupportedException;
136     NamedMethod newNamedMethod() throws VersionNotSupportedException;
137     InitMethod newInitMethod() throws VersionNotSupportedException;
138     RemoveMethod newRemoveMethod() throws VersionNotSupportedException;
139     AroundInvoke newAroundInvoke() throws VersionNotSupportedException;
140     PersistenceContextRef newPersistenceContextRef() throws VersionNotSupportedException;
141     PersistenceUnitRef newPersistenceUnitRef() throws VersionNotSupportedException;
142     LifecycleCallback newLifecycleCallback() throws VersionNotSupportedException;
143
144 }
145
146
Popular Tags