001: package org.andromda.cartridges.spring;
002:
003: import org.andromda.core.profile.Profile;
004: import org.andromda.metafacades.uml.UMLProfile;
005:
006: /**
007: * The Spring profile. Contains the profile information (tagged values, and stereotypes) for the Spring cartridge.
008: *
009: * @author Chad Brandon
010: * @author Peter Friese
011: */
012: public class SpringProfile extends UMLProfile {
013: /**
014: * The Profile instance from which we retrieve the mapped profile names.
015: */
016: private static final Profile profile = Profile.instance();
017:
018: /* ----------------- Stereotypes -------------------- */
019: /* ----------------- Tagged Values -------------------- */
020:
021: /**
022: * Stores the EJB service transaction type.
023: */
024: public static final String TAGGEDVALUE_EJB_TRANSACTION_TYPE = profile
025: .get("EJB_TRANSACTION_TYPE");
026:
027: /**
028: * Stores the EJB service view type (local/remote).
029: */
030: public static final String TAGGEDVALUE_EJB_VIEW_TYPE = profile
031: .get("EJB_VIEW_TYPE");
032:
033: /**
034: * Stores the Spring service transaction type.
035: */
036: public static final String TAGGEDVALUE_TRANSACTION_TYPE = profile
037: .get("TRANSACTION_TYPE");
038:
039: /**
040: * Stores whether a criteria search attribute may be nullable.
041: */
042: public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_NULLABLE = profile
043: .get("HIBERNATE_CRITERIA_NULLABLE");
044:
045: /**
046: * Stores a criteria search attribute path.
047: */
048: public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_ATTRIBUTE = profile
049: .get("HIBERNATE_CRITERIA_ATTRIBUTE");
050:
051: /**
052: * Stores a criteria search comparator.
053: */
054: public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_COMPARATOR = profile
055: .get("HIBERNATE_CRITERIA_COMPARATOR");
056:
057: /**
058: * Stores a hibernate matchmode.
059: */
060: public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_MATCHMODE = profile
061: .get("HIBERNATE_CRITERIA_MATCHMODE");
062:
063: /**
064: * Stores the criteria search order direction.
065: */
066: public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_ORDER_DIRECTION = profile
067: .get("HIBERNATE_CRITERIA_ORDER_DIRECTION");
068:
069: /**
070: * Stores the criteria search order relevance.
071: */
072: public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_ORDER_RELEVANCE = profile
073: .get("HIBERNATE_CRITERIA_ORDER_RELEVANCE");
074:
075: /**
076: * Stores whether or not criteria like comparator's should ignore case.
077: */
078: public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_COMPARATOR_IGNORE_CASE = profile
079: .get("HIBERNATE_CRITERIA_COMPARATOR_IGNORE_CASE");
080:
081: /**
082: * Stores a hibernate query.
083: */
084: public static final String TAGGEDVALUE_HIBERNATE_QUERY = profile
085: .get("HIBERNATE_QUERY");
086:
087: /**
088: * Stores the hibernate inheritance use for entities.
089: */
090: public static final String TAGGEDVALUE_HIBERNATE_INHERITANCE = profile
091: .get("HIBERNATE_INHERITANCE");
092:
093: /**
094: * Define whether the marked finder will use named parameters or positional parameters.
095: */
096: public static final String TAGGEDVALUE_HIBERNATE_USE_NAMED_PARAMETERS = profile
097: .get("HIBERNATE_USE_NAMED_PARAMETERS");
098:
099: /**
100: * Defines the remoting type for spring services.
101: */
102: public static final String TAGGEDVALUE_SPRING_SERVICE_REMOTING_TYPE = profile
103: .get("SPRING_SERVICE_REMOTING_TYPE");
104:
105: /**
106: * Defines the remote port for spring services.
107: */
108: public static final String TAGGEDVALUE_SPRING_SERVICE_REMOTE_PORT = profile
109: .get("SPRING_SERVICE_REMOTE_PORT");
110:
111: /**
112: * Define additional spring interceptors
113: */
114: public static final String TAGGEDVALUE_SPRING_SERVICE_INTERCEPTORS = profile
115: .get("SPRING_SERVICE_INTERCEPTORS");
116:
117: /**
118: * Define whether we will render only the configuration, but not the service itself.
119: */
120: public static final String TAGGEDVALUE_SERVICE_CONFIG_ONLY = profile
121: .get("SPRING_SERVICE_CONFIG_ONLY");
122:
123: /* ----------------- Tagged Value Values ------------- */
124:
125: /**
126: * The "like" comparator.
127: */
128: public static final String TAGGEDVALUEVALUE_COMPARATOR_LIKE = profile
129: .get("LIKE_COMPARATOR");
130:
131: /**
132: * The "case insensitive like" comparator.
133: */
134: public static final String TAGGEDVALUEVALUE_INSENSITIVE_LIKE_COMPARATOR = profile
135: .get("INSENSITIVE_LIKE_COMPARATOR");
136:
137: /**
138: * The "equals" comparator.
139: */
140: public static final String TAGGEDVALUEVALUE_COMPARATOR_EQUAL = profile
141: .get("EQUAL_COMPARATOR");
142:
143: /**
144: * The "greater of even" comparator.
145: */
146: public static final String TAGGEDVALUEVALUE_COMPARATOR_GREATER_OR_EQUAL = profile
147: .get("GREATER_THAN_OR_EQUAL_COMPARATOR");
148:
149: /**
150: * The "greater" comparator.
151: */
152: public static final String TAGGEDVALUEVALUE_COMPARATOR_GREATER = profile
153: .get("GREATER_THAN_COMPARATOR");
154:
155: /**
156: * The "less of even" comparator.
157: */
158: public static final String TAGGEDVALUEVALUE_COMPARATOR_LESS_OR_EQUAL = profile
159: .get("LESS_THAN_OR_EQUAL_COMPARATOR");
160:
161: /**
162: * The "less" comparator.
163: */
164: public static final String TAGGEDVALUEVALUE_COMPARATOR_LESS = profile
165: .get("LESS_THAN_COMPARATOR");
166:
167: /**
168: * The "in" comparator.
169: */
170: public static final String TAGGEDVALUEVALUE_COMPARATOR_IN = profile
171: .get("IN_COMPARATOR");
172:
173: /**
174: * The "not equal" comparator.
175: */
176: public static final String TAGGEDVALUEVALUE_COMPARATOR_NOT_EQUAL = profile
177: .get("NOT_EQUAL_COMPARATOR");
178:
179: /**
180: * The {@link net.sf.hibernate.expression.MatchMode#ANYWHERE} match mode.
181: */
182: public static final String TAGGEDVALUEVALUE_MATCHMODE_ANYWHERE = profile
183: .get("MATCHMODE_ANYWHERE");
184:
185: /**
186: * The {@link net.sf.hibernate.expression.MatchMode#END} match mode.
187: */
188: public static final String TAGGEDVALUEVALUE_MATCHMODE_END = profile
189: .get("MATCHMODE_END");
190:
191: /**
192: * The {@link net.sf.hibernate.expression.MatchMode#EXACT} match mode.
193: */
194: public static final String TAGGEDVALUEVALUE_MATCHMODE_EXACT = profile
195: .get("MATCHMODE_EXACT");
196:
197: /**
198: * The {@link net.sf.hibernate.expression.MatchMode#START} match mode.
199: */
200: public static final String TAGGEDVALUEVALUE_MATCHMODE_START = profile
201: .get("MATCHMODE_START");
202:
203: /**
204: * Ascending sort order.
205: */
206: public static final String TAGGEDVALUEVALUE_ORDER_ASCENDING = profile
207: .get("ORDER_ASCENDING");
208:
209: /**
210: * Descending sort order.
211: */
212: public static final String TAGGEDVALUEVALUE_ORDER_DESCENDING = profile
213: .get("ORDER_DESCENDING");
214: }
|