View Javadoc
1   package org.andromda.cartridges.ejb3;
2   
3   /**
4    * Stores Globals specific to the EJB3 cartridge.
5    *
6    * @author Vance Karimi
7    */
8   public class EJB3Globals
9   {
10      /**
11       * The property that stores the default EJB transaction type.
12       */
13      public static final String TRANSACTION_TYPE = "transactionType";
14  
15      /**
16       * The pattern to use for determining the package name for EJBs.
17       */
18      public static final String JNDI_NAME_PREFIX = "jndiNamePrefix";
19  
20      /**
21       * The property which stores the pattern defining the display attribute
22       * label name when it's of type Collection.
23       */
24      public static final String LABEL_COLLECTION_NAME_PATTERN = "labelCollectionNamePattern";
25  
26      /**
27       * The property which stores the pattern defining the display attribute
28       * label name when it's not of type Collection.
29       */
30      public static final String LABEL_SINGLE_NAME_PATTERN = "labelSingleNamePattern";
31  
32      /**
33       * The pattern used to construct the DAO name.
34       */
35      public static final String DAO_PATTERN = "daoNamePattern";
36  
37      /**
38       * The property which stores the persistence context unit name associated with the default
39       * Entity Manager.
40       */
41      public static final String PERSISTENCE_CONTEXT_UNIT_NAME = "persistenceContextUnitName";
42  
43      /**
44       * The property used to specify the implementation operation name pattern
45       * on service and entity beans.
46       */
47      public static final String IMPLEMENTATION_OPERATION_NAME_PATTERN =
48          "implementationOperationNamePattern";
49  
50      /**
51       * The property used to specify whether to enable query cache.
52       */
53      public static final String HIBERNATE_USER_QUERY_CACHE = "hibernateUseQueryCache";
54  
55      /**
56       * The property that stores the comma separated list of roles for manageable
57       * service beans.
58       */
59      public static final String MANAGEABLE_ROLES_ALLOWED = "manageableRolesAllowed";
60  
61      // --------------- Constants ---------------------
62  
63      /**
64       * Represents the eager fetch type
65       */
66      public static final String FETCH_TYPE_EAGER = "EAGER";
67  
68      /**
69       * Represents the lazy fetch type
70       */
71      public static final String FETCH_TYPE_LAZY = "LAZY";
72  
73      /**
74       * Represents the clob lob type
75       */
76      public static final String LOB_TYPE_CLOB = "CLOB";
77  
78      /**
79       * Represents the blob lob type
80       */
81      public static final String LOB_TYPE_BLOB = "BLOB";
82  
83      /**
84       * Represents the table generator type
85       */
86      public static final String GENERATOR_TYPE_TABLE = "TABLE";
87  
88      /**
89       * Represents the sequence generator type
90       */
91      public static final String GENERATOR_TYPE_SEQUENCE = "SEQUENCE";
92  
93      /**
94       * Represents the identity generator type
95       */
96      public static final String GENERATOR_TYPE_IDENTITY = "IDENTITY";
97  
98      /**
99       * Represents the auto generator type
100      */
101     public static final String GENERATOR_TYPE_AUTO = "AUTO";
102 
103     /**
104      * Represents the generic generator type
105      */
106     public static final String GENERATOR_TYPE_GENERIC = "GENERIC";
107 
108     /**
109      * Represents the none generator type
110      */
111     public static final String GENERATOR_TYPE_NONE = "NONE";
112 
113     /**
114      * Represents the date temporal type
115      */
116     public static final String TEMPORAL_TYPE_DATE = "DATE";
117 
118     /**
119      * Represents the time temporal type
120      */
121     public static final String TEMPORAL_TYPE_TIME = "TIME";
122 
123     /**
124      * Represents the timestamp temporal type
125      */
126     public static final String TEMPORAL_TYPE_TIMESTAMP = "TIMESTAMP";
127 
128     /**
129      * Represents the none temporal type
130      */
131     public static final String TEMPORAL_TYPE_NONE = "NONE";
132 
133     /**
134      * Represents the finder method index type on the parameter
135      */
136     public static final String FINDER_RESULT_TYPE_FIRST = "First";
137 
138     /**
139      * Represents the finder method max count on the parameter
140      */
141     public static final String FINDER_RESULT_TYPE_MAX = "Max";
142 
143     /**
144      * Represents the view type for the entity POJO as both remote and local
145      */
146     public static final String VIEW_TYPE_BOTH = "both";
147 
148     /**
149      * Represents the local view type for the entity POJO
150      */
151     public static final String VIEW_TYPE_LOCAL = "local";
152 
153     /**
154      * Represents the remote view type for the entity POJO
155      */
156     public static final String VIEW_TYPE_REMOTE = "remote";
157 
158     /**
159      * Represents the mandatory transaction type
160      */
161     public static final String TRANSACTION_TYPE_MANDATORY = "Manadatory";
162 
163     /**
164      * Represents the never transaction type
165      */
166     public static final String TRANSACTION_TYPE_NEVER = "Never";
167 
168     /**
169      * Represents the not supported transaction type
170      */
171     public static final String TRANSACTION_TYPE_NOT_SUPPORTED = "NotSupported";
172 
173     /**
174      * Represents the required transaction type
175      */
176     public static final String TRANSACTION_TYPE_REQUIRED = "Required";
177 
178     /**
179      * Represents the required transaction type
180      */
181     public static final String TRANSACTION_TYPE_REQUIRES_NEW = "RequiresNew";
182 
183     /**
184      * Represents the supports transaction type
185      */
186     public static final String TRANSACTION_TYPE_SUPPORTS = "Supports";
187 
188     /**
189      * Represents the stateless session bean
190      */
191     public static final String SERVICE_TYPE_STATELESS = "Stateless";
192 
193     /**
194      * Represents the stateful session bean
195      */
196     public static final String SERVICE_TYPE_STATEFUL = "Stateful";
197 
198     /**
199      * Represents the JBoss persistence container constant
200      */
201     public static final String PERSISTENCE_CONTAINER_JBOSS = "jboss";
202 
203     /**
204      * Represents the Weblogic persistence container contant
205      */
206     public static final String PERSISTENCE_CONTAINER_WEBLOGIC = "weblogic";
207 
208     /**
209      * Represents the default security domain
210      */
211     public static final String SECURITY_REALM = "securityRealm";
212 
213     /**
214      * Represents the bean managed transaction demarcation
215      */
216     public static final String TRANSACTION_MANAGEMENT_BEAN = "bean";
217 
218     /**
219      * Represents the container managed transaction demarcation
220      */
221     public static final String TRANSACTION_MANAGEMENT_CONTAINER = "container";
222 
223     /**
224      * Represents the fully qualified topic destination type for the
225      * JMS message driven bean
226      */
227     public static final String MDB_DESTINATION_TYPE_TOPIC = "javax.jms.Topic";
228 
229     /**
230      * Represents the fully qualified queue destination type for the
231      * JMS message driven bean
232      */
233     public static final String MDB_DESTINATION_TYPE_QUEUE = "javax.jms.Queue";
234 
235     /**
236      * Represents the durable subscription topic
237      */
238     public static final String MDB_SUBSCRIPTION_DURABLE = "Durable";
239 
240     /**
241      * Represents the non durable subscription topic
242      */
243     public static final String MDB_SUBSCRIPTION_NONDURABLE = "NonDurable";
244 
245     /**
246      * The namespace delimiter (separates namespaces).
247      */
248     public static final char NAMESPACE_DELIMITER = '.';
249 
250     /**
251      * Defines the prefix given to the transformation constants.
252      */
253     public static final String TRANSFORMATION_CONSTANT_PREFIX = "TRANSFORM_";
254 
255     /**
256      * The suffix given to the no transformation constant.
257      */
258     public static final String NO_TRANSFORMATION_CONSTANT_SUFFIX = "NONE";
259 
260     /**
261      * The prefix given to transformation method names.
262      */
263     public static final String TRANSFORMATION_METHOD_PREFIX = "to";
264 
265     /**
266      * The suffix given to transformation method names.
267      */
268     public static final String TRANSFORMATION_TO_COLLECTION_METHOD_SUFFIX = "Collection";
269 
270     /**
271      * Seam component scope type STATELESS
272      */
273     public static final String SEAM_COMPONENT_SCOPE_STATELESS = "STATELESS";
274 
275     /**
276      * Seam component scope type CONVERSATION
277      */
278     public static final String SEAM_COMPONENT_SCOPE_CONVERSATION = "CONVERSATION";
279 
280     /**
281      * The property representing the default collection interface of java.util.SortedSet
282      */
283     public static final String COLLECTION_INTERFACE_SORTED_SET = "java.util.SortedSet";
284 }