001: package org.andromda.cartridges.spring.metafacades;
002:
003: /**
004: * Stores Globals specific to the Spring cartridge.
005: *
006: * @author Chad Brandon
007: * @author Wouter Zoons
008: */
009: public class SpringGlobals {
010: /**
011: * Denotes whether or not subclasses require their own mapping file.
012: */
013: static public final String HIBERNATE_MAPPING_STRATEGY = "hibernateMappingStrategy";
014:
015: /**
016: * A mapping file per subclass.
017: */
018: static public final String HIBERNATE_MAPPING_STRATEGY_SUBCLASS = "subclass";
019:
020: /**
021: * A mapping file per hierarchy.
022: */
023: static public final String HIBERNATE_MAPPING_STRATEGY_HIERARCHY = "hierachy";
024:
025: /**
026: * POJO implementation class suffix.
027: */
028: final static String IMPLEMENTATION_SUFFIX = "Impl";
029:
030: /**
031: * EJB implementation class suffix.
032: */
033: final static String EJB_IMPLEMENTATION_SUFFIX = "Bean";
034:
035: /**
036: * The service base class suffix.
037: */
038: final static String SERVICE_BASE_SUFFIX = "Base";
039:
040: /**
041: * The bean name target suffix
042: */
043: final static String BEAN_NAME_TARGET_SUFFIX = "Target";
044:
045: /**
046: * The service web service delegator.
047: */
048: final static String WEB_SERVICE_DELEGATOR_SUFFIX = "WSDelegator";
049:
050: /**
051: * The prefix given to transformation method names.
052: */
053: final static String TRANSFORMATION_METHOD_PREFIX = "to";
054:
055: /**
056: * The suffix given to transformation method names.
057: */
058: static final String TRANSFORMATION_TO_COLLECTION_METHOD_SUFFIX = "Collection";
059:
060: /**
061: * Defines the prefix given to the transformation constants.
062: */
063: final static String TRANSFORMATION_CONSTANT_PREFIX = "TRANSFORM_";
064:
065: /**
066: * The property used to specify the implementation operation name pattern (on both services and DAOs).
067: */
068: static final String IMPLEMENTATION_OPERATION_NAME_PATTERN = "implementationOperationNamePattern";
069:
070: /**
071: * The pattern used to construct the DAO base name.
072: */
073: static final String DAO_BASE_PATTERN = "daoBaseNamePattern";
074:
075: /**
076: * The pattern used to construct the DAO name.
077: */
078: static final String DAO_PATTERN = "daoNamePattern";
079:
080: /**
081: * The pattern used to construct the DAO implementation name.
082: */
083: static final String DAO_IMPLEMENTATION_PATTERN = "daoImplementationNamePattern";
084:
085: /**
086: * The pattern used to indicate whether or not ejb transactions are enabled.
087: */
088: static final String EJB_TRANSACTIONS_ENABLED = "ejbTransactionsEnabled";
089:
090: /**
091: * The pattern used to construct the web service outgoing attachment handler call.
092: */
093: static final String WEBSERVICE_OUTGOING_ATTACHMENT_HANDLER_CALL_PATTERN = "webServiceOutgoingAttachmentHandlerCallPattern";
094:
095: /**
096: * The pattern used to construct the web service incoming attachment handler call.
097: */
098: static final String WEBSERVICE_INCOMING_ATTACHMENT_HANDLER_CALL_PATTERN = "webServiceIncomingAttachmentHandlerCallPattern";
099:
100: /**
101: * RMI protocol for remote services
102: */
103: static final String REMOTING_PROTOCOL_RMI = "rmi";
104:
105: /**
106: * Hessian protocol for remote services
107: */
108: static final String REMOTING_PROTOCOL_HESSIAN = "hessian";
109:
110: /**
111: * HttpInvoker protocol for remote services
112: */
113: static final String REMOTING_PROTOCOL_HTTPINVOKER = "httpinvoker";
114:
115: /**
116: * Disable remoting
117: */
118: static final String REMOTING_PROTOCOL_NONE = "none";
119:
120: /**
121: * Burlap protocol for remote services
122: */
123: static final String REMOTING_PROTOCOL_BURLAP = "burlap";
124:
125: /**
126: * The suffix to append to the class names of CRUD value objects.
127: */
128: static final String CRUD_VALUE_OBJECT_SUFFIX = "crudValueObjectSuffix";
129:
130: /**
131: * Prefix for configuration properties related to remoting.
132: */
133: static final String CONFIG_PROPERTY_PREFIX = "configPropertyPrefix";
134:
135: /**
136: * Default service exceptino name pattern
137: */
138: static final String DEFAULT_SERVICE_EXCEPTION_NAME_PATTERN = "defaultServiceExceptionNamePattern";
139:
140: /**
141: * Default service exceptions
142: */
143: static final String DEFAULT_SERVICE_EXCEPTIONS = "defaultServiceExceptions";
144:
145: /**
146: * Enable rich-client code generation ?
147: */
148: static final String RICH_CLIENT = "richClient";
149:
150: /**
151: * The name pattern for EJB packages
152: */
153: static final String EJB_PACKAGE_NAME_PATTERN = "ejbPackageNamePattern";
154:
155: /**
156: * The prefix to use when constructing ejb JNDI names
157: */
158: static final String EJB_JNDI_NAME_PREFIX = "ejbJndiNamePrefix";
159:
160: /**
161: * Service interceptors
162: */
163: static final String SERVICE_INTERCEPTORS = "serviceInterceptors";
164:
165: /**
166: * The remoting type to be used for services
167: */
168: static final String SERVICE_REMOTING_TYPE = "serviceRemotingType";
169:
170: /**
171: * The server on which remote services are to be deployed
172: */
173: static final String SERVICE_REMOTE_SERVER = "serviceRemoteServer";
174:
175: /**
176: * The remote port via which services are accessible
177: */
178: static final String SERVICE_REMOTE_PORT = "serviceRemotePort";
179:
180: /**
181: * The remote context to which services are to be deployed
182: */
183: static final String SERVICE_REMOTE_CONTEXT = "serviceRemoteContext";
184:
185: /**
186: * Indicates if "XML Persistence" code generation is enabled. Requires Hibernate 3.
187: */
188: static public final String HIBERNATE_XML_PERSISTENCE = "hibernateXMLPersistence";
189:
190: /**
191: * Determines if the identifier attribute on an entity is generated as an attribute
192: * or as a separate element.
193: */
194: static final String HIBERNATE_XML_PERSISTENCE_ID_AS_ATTRIBUTE = "hibernateXMLPersistIDAsAttribute";
195:
196: /**
197: * Hibernate version to use.
198: */
199: static public final String HIBERNATE_VERSION = "hibernateVersion";
200:
201: /**
202: * The version for Hibernate 3.
203: */
204: public static final String HIBERNATE_VERSION_3 = "3";
205:
206: }
|