1
2
3
4 package org.andromda.cartridges.ejb.metafacades;
5
6 /***
7 * <p>
8 * Represents a Session EJB.
9 * </p>
10 *
11 * Metafacade interface to be used by AndroMDA cartridges.
12 */
13 public interface EJBSessionFacade
14 extends org.andromda.metafacades.uml.Service
15 {
16
17 /***
18 * Indicates the metafacade type (used for metafacade mappings).
19 *
20 * @return always <code>true</code>
21 */
22 public boolean isEJBSessionFacadeMetaType();
23
24 /***
25 * <p>
26 * All instanceAttributes for this session EJB. The list includes
27 * the instanceAttributes that are inherited from super classes.
28 * The list contains the inherited instanceAttributes first,
29 * followed by the instanceAttributes defined in this class.
30 * </p>
31 */
32 public java.util.List getAllInstanceAttributes();
33
34 /***
35 * <p>
36 * All "business" operations for this Session EJB. These are any
37 * operations that are NOT
38 * </p>
39 * <p>
40 * identified as create methods.
41 * </p>
42 */
43 public java.util.Collection getBusinessOperations();
44
45 /***
46 * <p>
47 * Gets all constants for this session EJB. Constants are defined
48 * as static read-only attributes which do NOT have the
49 * <<EnvEntry>> stereotype. If 'follow' is true, then the
50 * inheritance hierachy will be followed and we'll retrieve all
51 * constants from any super types as well.
52 * </p>
53 */
54 public java.util.Collection getConstants(boolean follow);
55
56 /***
57 * <p>
58 * Gets create methods for this session EJB. If 'follow' is set to
59 * true, it will follow the inheritance hierarchy and retrieve
60 * those defined on any super types.
61 * </p>
62 */
63 public java.util.Collection getCreateMethods(boolean follow);
64
65 /***
66 * <p>
67 * Gets all env-entries for the specified session EJB. Env-entries
68 * are stored as static attributes on the entity and stereotyped as
69 * <<EnvEntry>>. If 'follow' is true, then the inheritance
70 * hierachy will be followed and we'll retrieve all env-entries
71 * from any super types as well.
72 * </p>
73 */
74 public java.util.Collection getEnvironmentEntries(boolean follow);
75
76 /***
77 * <p>
78 * A String representing the name of a home interface for this
79 * entity EJB.
80 * </p>
81 */
82 public java.lang.String getHomeInterfaceName();
83
84 /***
85 * <p>
86 * Alll inherited instanceAttributes this session EJB. The
87 * instanceAttributes are grouped by the class that defines the
88 * instanceAttributes, with instanceAttributes from the most
89 * removed super class first.
90 * </p>
91 */
92 public java.util.List getInheritedInstanceAttributes();
93
94 /***
95 * <p>
96 * The JNDI name to which this session EJB is bound.
97 * </p>
98 */
99 public java.lang.String getJndiName();
100
101 /***
102 * <p>
103 * Gets the transaction type for this service (i.e. REQUIRED, etc)
104 * </p>
105 */
106 public java.lang.String getTransactionType();
107
108 /***
109 * <p>
110 * The name of the type of this Session EJB.
111 * </p>
112 */
113 public java.lang.String getType();
114
115 /***
116 * <p>
117 * A string indicating whether the Bean is a local or remotely
118 * accessable bean.
119 * </p>
120 */
121 public java.lang.String getViewType();
122
123 /***
124 * <p>
125 * True/false depending on whether or not this Session EJB is
126 * stateful or not.
127 * </p>
128 */
129 public boolean isStateful();
130
131 /***
132 * <p>
133 * True/false depending on whether or not this Session EJB is
134 * stateless or not.
135 * </p>
136 */
137 public boolean isStateless();
138
139 /***
140 * <p>
141 * Whether or not to allow a synthetic (auto generated) create
142 * method.
143 * </p>
144 */
145 public boolean isSyntheticCreateMethodAllowed();
146
147 }