001package org.andromda.cartridges.ejb3;
002
003/**
004 * Stores Globals specific to the EJB3 cartridge.
005 *
006 * @author Vance Karimi
007 */
008public class EJB3Globals
009{
010    /**
011     * The property that stores the default EJB transaction type.
012     */
013    public static final String TRANSACTION_TYPE = "transactionType";
014
015    /**
016     * The pattern to use for determining the package name for EJBs.
017     */
018    public static final String JNDI_NAME_PREFIX = "jndiNamePrefix";
019
020    /**
021     * The property which stores the pattern defining the display attribute
022     * label name when it's of type Collection.
023     */
024    public static final String LABEL_COLLECTION_NAME_PATTERN = "labelCollectionNamePattern";
025
026    /**
027     * The property which stores the pattern defining the display attribute
028     * label name when it's not of type Collection.
029     */
030    public static final String LABEL_SINGLE_NAME_PATTERN = "labelSingleNamePattern";
031
032    /**
033     * The pattern used to construct the DAO name.
034     */
035    public static final String DAO_PATTERN = "daoNamePattern";
036
037    /**
038     * The property which stores the persistence context unit name associated with the default
039     * Entity Manager.
040     */
041    public static final String PERSISTENCE_CONTEXT_UNIT_NAME = "persistenceContextUnitName";
042
043    /**
044     * The property used to specify the implementation operation name pattern
045     * on service and entity beans.
046     */
047    public static final String IMPLEMENTATION_OPERATION_NAME_PATTERN =
048        "implementationOperationNamePattern";
049
050    /**
051     * The property used to specify whether to enable query cache.
052     */
053    public static final String HIBERNATE_USER_QUERY_CACHE = "hibernateUseQueryCache";
054
055    /**
056     * The property that stores the comma separated list of roles for manageable
057     * service beans.
058     */
059    public static final String MANAGEABLE_ROLES_ALLOWED = "manageableRolesAllowed";
060
061    // --------------- Constants ---------------------
062
063    /**
064     * Represents the eager fetch type
065     */
066    public static final String FETCH_TYPE_EAGER = "EAGER";
067
068    /**
069     * Represents the lazy fetch type
070     */
071    public static final String FETCH_TYPE_LAZY = "LAZY";
072
073    /**
074     * Represents the clob lob type
075     */
076    public static final String LOB_TYPE_CLOB = "CLOB";
077
078    /**
079     * Represents the blob lob type
080     */
081    public static final String LOB_TYPE_BLOB = "BLOB";
082
083    /**
084     * Represents the table generator type
085     */
086    public static final String GENERATOR_TYPE_TABLE = "TABLE";
087
088    /**
089     * Represents the sequence generator type
090     */
091    public static final String GENERATOR_TYPE_SEQUENCE = "SEQUENCE";
092
093    /**
094     * Represents the identity generator type
095     */
096    public static final String GENERATOR_TYPE_IDENTITY = "IDENTITY";
097
098    /**
099     * 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}