1 package org.andromda.cartridges.spring;
2
3 import org.andromda.core.profile.Profile;
4 import org.andromda.metafacades.uml.UMLProfile;
5
6
7 /***
8 * The Spring profile. Contains the profile information (tagged values, and stereotypes) for the Spring cartridge.
9 *
10 * @author Chad Brandon
11 * @author Peter Friese
12 */
13 public class SpringProfile
14 extends UMLProfile
15 {
16 /***
17 * The Profile instance from which we retrieve the mapped profile names.
18 */
19 private static final Profile profile = Profile.instance();
20
21
22
23
24 /***
25 * Stores the EJB service transaction type.
26 */
27 public static final String TAGGEDVALUE_EJB_TRANSACTION_TYPE = profile.get("EJB_TRANSACTION_TYPE");
28
29 /***
30 * Stores the EJB service view type (local/remote).
31 */
32 public static final String TAGGEDVALUE_EJB_VIEW_TYPE = profile.get("EJB_VIEW_TYPE");
33
34 /***
35 * Stores the Spring service transaction type.
36 */
37 public static final String TAGGEDVALUE_TRANSACTION_TYPE = profile.get("TRANSACTION_TYPE");
38
39 /***
40 * Stores whether a criteria search attribute may be nullable.
41 */
42 public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_NULLABLE = profile.get("HIBERNATE_CRITERIA_NULLABLE");
43
44 /***
45 * Stores a criteria search attribute path.
46 */
47 public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_ATTRIBUTE = profile.get("HIBERNATE_CRITERIA_ATTRIBUTE");
48
49 /***
50 * Stores a criteria search comparator.
51 */
52 public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_COMPARATOR = profile.get("HIBERNATE_CRITERIA_COMPARATOR");
53
54 /***
55 * Stores a hibernate matchmode.
56 */
57 public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_MATCHMODE = profile.get("HIBERNATE_CRITERIA_MATCHMODE");
58
59 /***
60 * Stores the criteria search order direction.
61 */
62 public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_ORDER_DIRECTION =
63 profile.get("HIBERNATE_CRITERIA_ORDER_DIRECTION");
64
65 /***
66 * Stores the criteria search order relevance.
67 */
68 public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_ORDER_RELEVANCE =
69 profile.get("HIBERNATE_CRITERIA_ORDER_RELEVANCE");
70
71 /***
72 * Stores whether or not criteria like comparator's should ignore case.
73 */
74 public static final String TAGGEDVALUE_HIBERNATE_CRITERIA_COMPARATOR_IGNORE_CASE =
75 profile.get("HIBERNATE_CRITERIA_COMPARATOR_IGNORE_CASE");
76
77 /***
78 * Stores a hibernate query.
79 */
80 public static final String TAGGEDVALUE_HIBERNATE_QUERY = profile.get("HIBERNATE_QUERY");
81
82 /***
83 * Stores the hibernate inheritance use for entities.
84 */
85 public static final String TAGGEDVALUE_HIBERNATE_INHERITANCE = profile.get("HIBERNATE_INHERITANCE");
86
87 /***
88 * Define whether the marked finder will use named parameters or positional parameters.
89 */
90 public static final String TAGGEDVALUE_HIBERNATE_USE_NAMED_PARAMETERS = profile
91 .get("HIBERNATE_USE_NAMED_PARAMETERS");
92
93 /***
94 * Defines the remoting type for spring services.
95 */
96 public static final String TAGGEDVALUE_SPRING_SERVICE_REMOTING_TYPE = profile.get("SPRING_SERVICE_REMOTING_TYPE");
97
98 /***
99 * Defines the remote port for spring services.
100 */
101 public static final String TAGGEDVALUE_SPRING_SERVICE_REMOTE_PORT = profile.get("SPRING_SERVICE_REMOTE_PORT");
102
103 /***
104 * Define additional spring interceptors
105 */
106 public static final String TAGGEDVALUE_SPRING_SERVICE_INTERCEPTORS = profile.get("SPRING_SERVICE_INTERCEPTORS");
107
108 /***
109 * Define whether we will render only the configuration, but not the service itself.
110 */
111 public static final String TAGGEDVALUE_SERVICE_CONFIG_ONLY = profile.get("SPRING_SERVICE_CONFIG_ONLY");
112
113
114
115 /***
116 * The "like" comparator.
117 */
118 public static final String TAGGEDVALUEVALUE_COMPARATOR_LIKE = profile.get("LIKE_COMPARATOR");
119
120 /***
121 * The "case insensitive like" comparator.
122 */
123 public static final String TAGGEDVALUEVALUE_INSENSITIVE_LIKE_COMPARATOR =
124 profile.get("INSENSITIVE_LIKE_COMPARATOR");
125
126 /***
127 * The "equals" comparator.
128 */
129 public static final String TAGGEDVALUEVALUE_COMPARATOR_EQUAL = profile.get("EQUAL_COMPARATOR");
130
131 /***
132 * The "greater of even" comparator.
133 */
134 public static final String TAGGEDVALUEVALUE_COMPARATOR_GREATER_OR_EQUAL =
135 profile.get("GREATER_THAN_OR_EQUAL_COMPARATOR");
136
137 /***
138 * The "greater" comparator.
139 */
140 public static final String TAGGEDVALUEVALUE_COMPARATOR_GREATER = profile.get("GREATER_THAN_COMPARATOR");
141
142 /***
143 * The "less of even" comparator.
144 */
145 public static final String TAGGEDVALUEVALUE_COMPARATOR_LESS_OR_EQUAL = profile.get("LESS_THAN_OR_EQUAL_COMPARATOR");
146
147 /***
148 * The "less" comparator.
149 */
150 public static final String TAGGEDVALUEVALUE_COMPARATOR_LESS = profile.get("LESS_THAN_COMPARATOR");
151
152 /***
153 * The "in" comparator.
154 */
155 public static final String TAGGEDVALUEVALUE_COMPARATOR_IN = profile.get("IN_COMPARATOR");
156
157 /***
158 * The "not equal" comparator.
159 */
160 public static final String TAGGEDVALUEVALUE_COMPARATOR_NOT_EQUAL = profile.get("NOT_EQUAL_COMPARATOR");
161
162 /***
163 * The {@link net.sf.hibernate.expression.MatchMode#ANYWHERE} match mode.
164 */
165 public static final String TAGGEDVALUEVALUE_MATCHMODE_ANYWHERE = profile.get("MATCHMODE_ANYWHERE");
166
167 /***
168 * The {@link net.sf.hibernate.expression.MatchMode#END} match mode.
169 */
170 public static final String TAGGEDVALUEVALUE_MATCHMODE_END = profile.get("MATCHMODE_END");
171
172 /***
173 * The {@link net.sf.hibernate.expression.MatchMode#EXACT} match mode.
174 */
175 public static final String TAGGEDVALUEVALUE_MATCHMODE_EXACT = profile.get("MATCHMODE_EXACT");
176
177 /***
178 * The {@link net.sf.hibernate.expression.MatchMode#START} match mode.
179 */
180 public static final String TAGGEDVALUEVALUE_MATCHMODE_START = profile.get("MATCHMODE_START");
181
182 /***
183 * Ascending sort order.
184 */
185 public static final String TAGGEDVALUEVALUE_ORDER_ASCENDING = profile.get("ORDER_ASCENDING");
186
187 /***
188 * Descending sort order.
189 */
190 public static final String TAGGEDVALUEVALUE_ORDER_DESCENDING = profile.get("ORDER_DESCENDING");
191 }