View Javadoc

1   package org.andromda.cartridges.spring.metafacades;
2   
3   /***
4    * Stores Globals specific to the Spring cartridge.
5    *
6    * @author Chad Brandon
7    * @author Wouter Zoons
8    */
9   public class SpringGlobals
10  {   
11      /***
12       * Denotes whether or not subclasses require their own mapping file.
13       */
14      static public final String HIBERNATE_MAPPING_STRATEGY = "hibernateMappingStrategy";
15  
16      /***
17       * A mapping file per subclass.
18       */
19      static public final String HIBERNATE_MAPPING_STRATEGY_SUBCLASS = "subclass";
20  
21      /***
22       * A mapping file per hierarchy.
23       */
24      static public final String HIBERNATE_MAPPING_STRATEGY_HIERARCHY = "hierachy";
25  
26      /***
27       * POJO implementation class suffix.
28       */
29      final static String IMPLEMENTATION_SUFFIX = "Impl";
30  
31      /***
32       * EJB implementation class suffix.
33       */
34      final static String EJB_IMPLEMENTATION_SUFFIX = "Bean";
35  
36      /***
37       * The service base class suffix.
38       */
39      final static String SERVICE_BASE_SUFFIX = "Base";
40  
41      /***
42       * The bean name target suffix
43       */
44      final static String BEAN_NAME_TARGET_SUFFIX = "Target";
45  
46      /***
47       * The service web service delegator.
48       */
49      final static String WEB_SERVICE_DELEGATOR_SUFFIX = "WSDelegator";
50  
51      /***
52       * The prefix given to transformation method names.
53       */
54      final static String TRANSFORMATION_METHOD_PREFIX = "to";
55  
56      /***
57       * The suffix given to transformation method names.
58       */
59      static final String TRANSFORMATION_TO_COLLECTION_METHOD_SUFFIX = "Collection";
60  
61      /***
62       * Defines the prefix given to the transformation constants.
63       */
64      final static String TRANSFORMATION_CONSTANT_PREFIX = "TRANSFORM_";
65  
66      /***
67       * The property used to specify the implementation operation name pattern (on both services and DAOs).
68       */
69      static final String IMPLEMENTATION_OPERATION_NAME_PATTERN = "implementationOperationNamePattern";
70  
71      /***
72       * The pattern used to construct the DAO base name.
73       */
74      static final String DAO_BASE_PATTERN = "daoBaseNamePattern";
75  
76      /***
77       * The pattern used to construct the DAO name.
78       */
79      static final String DAO_PATTERN = "daoNamePattern";
80  
81      /***
82       * The pattern used to construct the DAO implementation name.
83       */
84      static final String DAO_IMPLEMENTATION_PATTERN = "daoImplementationNamePattern";
85      
86      /***
87       * The pattern used to indicate whether or not ejb transactions are enabled.
88       */
89      static final String EJB_TRANSACTIONS_ENABLED = "ejbTransactionsEnabled";
90      
91      /***
92       * The pattern used to construct the web service outgoing attachment handler call.
93       */
94      static final String WEBSERVICE_OUTGOING_ATTACHMENT_HANDLER_CALL_PATTERN = "webServiceOutgoingAttachmentHandlerCallPattern";
95      
96      /***
97       * The pattern used to construct the web service incoming attachment handler call.
98       */
99      static final String WEBSERVICE_INCOMING_ATTACHMENT_HANDLER_CALL_PATTERN = "webServiceIncomingAttachmentHandlerCallPattern";
100 
101     /***
102      * RMI protocol for remote services
103      */
104     static final String REMOTING_PROTOCOL_RMI = "rmi";
105 
106     /***
107      * Hessian protocol for remote services
108      */
109     static final String REMOTING_PROTOCOL_HESSIAN = "hessian";
110 
111     /***
112      * HttpInvoker protocol for remote services
113      */
114     static final String REMOTING_PROTOCOL_HTTPINVOKER = "httpinvoker";
115 
116     /***
117      * Disable remoting
118      */
119     static final String REMOTING_PROTOCOL_NONE = "none";
120 
121     /***
122      * Burlap protocol for remote services
123      */
124     static final String REMOTING_PROTOCOL_BURLAP = "burlap";
125 
126     /***
127      * The suffix to append to the class names of CRUD value objects.
128      */
129     static final String CRUD_VALUE_OBJECT_SUFFIX = "crudValueObjectSuffix";
130 
131     /***
132      * Prefix for configuration properties related to remoting.
133      */
134     static final String CONFIG_PROPERTY_PREFIX = "configPropertyPrefix";
135 
136     /***
137      * Default service exceptino name pattern
138      */
139     static final String DEFAULT_SERVICE_EXCEPTION_NAME_PATTERN = "defaultServiceExceptionNamePattern";
140 
141     /***
142      * Default service exceptions
143      */
144     static final String DEFAULT_SERVICE_EXCEPTIONS = "defaultServiceExceptions";
145 
146     /***
147      * Enable rich-client code generation ?
148      */
149     static final String RICH_CLIENT = "richClient";
150 
151     /***
152      * The name pattern for EJB packages
153      */
154     static final String EJB_PACKAGE_NAME_PATTERN = "ejbPackageNamePattern";
155 
156     /***
157      * The prefix to use when constructing ejb JNDI names
158      */
159     static final String EJB_JNDI_NAME_PREFIX = "ejbJndiNamePrefix";
160 
161     /***
162      * Service interceptors
163      */
164     static final String SERVICE_INTERCEPTORS = "serviceInterceptors";
165 
166     /***
167      * The remoting type to be used for services
168      */
169     static final String SERVICE_REMOTING_TYPE = "serviceRemotingType";
170 
171     /***
172      * The server on which remote services are to be deployed
173      */
174     static final String SERVICE_REMOTE_SERVER = "serviceRemoteServer";
175 
176     /***
177      * The remote port via which services are accessible
178      */
179     static final String SERVICE_REMOTE_PORT = "serviceRemotePort";
180 
181     /***
182      * The remote context to which services are to be deployed
183      */
184     static final String SERVICE_REMOTE_CONTEXT = "serviceRemoteContext";
185     
186     /***
187      * Indicates if "XML Persistence" code generation is enabled. Requires Hibernate 3.
188      */
189     static public final String HIBERNATE_XML_PERSISTENCE = "hibernateXMLPersistence";
190 
191     /***
192      * Determines if the identifier attribute on an entity is generated as an attribute
193      * or as a separate element.
194      */
195     static final String HIBERNATE_XML_PERSISTENCE_ID_AS_ATTRIBUTE = "hibernateXMLPersistIDAsAttribute";
196 
197     /***
198      * Hibernate version to use.
199      */
200     static public final String HIBERNATE_VERSION = "hibernateVersion";
201 
202     /***
203      * The version for Hibernate 3.
204      */
205     public static final String HIBERNATE_VERSION_3 = "3";
206     
207 }