KickJava   Java API By Example, From Geeks To Geeks.

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


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 MessageDriven extends Ejb {
28
29         public static final String JavaDoc MESSAGING_TYPE = "MessagingType"; // NOI18N
30
public static final String JavaDoc TRANSACTION_TYPE = "TransactionType"; // NOI18N
31
public static final String JavaDoc MESSAGE_DESTINATION_TYPE = "MessageDestinationType"; // NOI18N
32
public static final String JavaDoc MESSAGE_DESTINATION_LINK = "MessageDestinationLink"; // NOI18N
33
public static final String JavaDoc ACTIVATION_CONFIG = "ActivationConfig"; // NOI18N
34
public static final String JavaDoc TRANSACTION_TYPE_BEAN = "Bean"; // NOI18N
35
public static final String JavaDoc TRANSACTION_TYPE_CONTAINER = "Container"; // NOI18N
36

37         public void setTransactionType(String JavaDoc value);
38
39         public String JavaDoc getTransactionType();
40         
41         public void setMessageSelector(String JavaDoc value) throws VersionNotSupportedException;
42
43         public String JavaDoc getMessageSelector() throws VersionNotSupportedException;
44
45         public void setAcknowledgeMode(String JavaDoc value) throws VersionNotSupportedException;
46
47         public String JavaDoc getAcknowledgeMode() throws VersionNotSupportedException;
48         
49         public void setMessageDrivenDestination(MessageDrivenDestination value) throws VersionNotSupportedException;
50
51         public MessageDrivenDestination getMessageDrivenDestination() throws VersionNotSupportedException;
52         
53         //2.1
54
public void setMessagingType(String JavaDoc value) throws VersionNotSupportedException;
55
56     public String JavaDoc getMessagingType() throws VersionNotSupportedException;
57         
58         public void setMessageDestinationType(String JavaDoc value) throws VersionNotSupportedException;
59
60     public String JavaDoc getMessageDestinationType() throws VersionNotSupportedException;
61                 
62         public void setMessageDestinationLink(String JavaDoc value) throws VersionNotSupportedException;
63
64     public String JavaDoc getMessageDestinationLink() throws VersionNotSupportedException;
65         
66         public void setActivationConfig(ActivationConfig value) throws VersionNotSupportedException;
67
68     public ActivationConfig getActivationConfig() throws VersionNotSupportedException;
69         
70         public ActivationConfig newActivationConfig() throws VersionNotSupportedException;
71
72         // EJB 3.0
73

74     void setMappedName(String JavaDoc value) throws VersionNotSupportedException;
75     String JavaDoc getMappedName() throws VersionNotSupportedException;
76     void setTimeoutMethod(NamedMethod valueInterface) throws VersionNotSupportedException;
77     NamedMethod getTimeoutMethod() throws VersionNotSupportedException;
78     void setAroundInvoke(int index, AroundInvoke valueInterface) throws VersionNotSupportedException;
79     AroundInvoke getAroundInvoke(int index) throws VersionNotSupportedException;
80     int sizeAroundInvoke() throws VersionNotSupportedException;
81     void setAroundInvoke(AroundInvoke[] value) throws VersionNotSupportedException;
82     AroundInvoke[] getAroundInvoke() throws VersionNotSupportedException;
83     int addAroundInvoke(AroundInvoke valueInterface) throws VersionNotSupportedException;
84     int removeAroundInvoke(AroundInvoke valueInterface) throws VersionNotSupportedException;
85     void setPersistenceContextRef(int index, PersistenceContextRef valueInterface) throws VersionNotSupportedException;
86     PersistenceContextRef getPersistenceContextRef(int index) throws VersionNotSupportedException;
87     int sizePersistenceContextRef() throws VersionNotSupportedException;
88     void setPersistenceContextRef(PersistenceContextRef[] value) throws VersionNotSupportedException;
89     PersistenceContextRef[] getPersistenceContextRef() throws VersionNotSupportedException;
90     int addPersistenceContextRef(PersistenceContextRef valueInterface) throws VersionNotSupportedException;
91     int removePersistenceContextRef(PersistenceContextRef valueInterface) throws VersionNotSupportedException;
92     void setPersistenceUnitRef(int index, PersistenceUnitRef valueInterface) throws VersionNotSupportedException;
93     PersistenceUnitRef getPersistenceUnitRef(int index) throws VersionNotSupportedException;
94     int sizePersistenceUnitRef() throws VersionNotSupportedException;
95     void setPersistenceUnitRef(PersistenceUnitRef[] value) throws VersionNotSupportedException;
96     PersistenceUnitRef[] getPersistenceUnitRef() throws VersionNotSupportedException;
97     int addPersistenceUnitRef(PersistenceUnitRef valueInterface) throws VersionNotSupportedException;
98     int removePersistenceUnitRef(PersistenceUnitRef valueInterface) throws VersionNotSupportedException;
99     void setPostConstruct(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
100     LifecycleCallback getPostConstruct(int index) throws VersionNotSupportedException;
101     int sizePostConstruct() throws VersionNotSupportedException;
102     void setPostConstruct(LifecycleCallback[] value) throws VersionNotSupportedException;
103     LifecycleCallback[] getPostConstruct() throws VersionNotSupportedException;
104     int addPostConstruct(LifecycleCallback valueInterface) throws VersionNotSupportedException;
105     int removePostConstruct(LifecycleCallback valueInterface) throws VersionNotSupportedException;
106     void setPreDestroy(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException;
107     LifecycleCallback getPreDestroy(int index) throws VersionNotSupportedException;
108     int sizePreDestroy() throws VersionNotSupportedException;
109     void setPreDestroy(LifecycleCallback[] value) throws VersionNotSupportedException;
110     LifecycleCallback[] getPreDestroy() throws VersionNotSupportedException;
111     int addPreDestroy(LifecycleCallback valueInterface) throws VersionNotSupportedException;
112     int removePreDestroy(LifecycleCallback valueInterface) throws VersionNotSupportedException;
113     NamedMethod newNamedMethod() throws VersionNotSupportedException;
114     AroundInvoke newAroundInvoke() throws VersionNotSupportedException;
115     PersistenceContextRef newPersistenceContextRef() throws VersionNotSupportedException;
116     PersistenceUnitRef newPersistenceUnitRef() throws VersionNotSupportedException;
117     LifecycleCallback newLifecycleCallback() throws VersionNotSupportedException;
118
119         }
120  
121
Popular Tags