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