KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > dods > editor > Doml > DbVendor


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id$
6  */

7 package org.enhydra.dods.editor.Doml;
8
9 import java.util.Arrays JavaDoc;
10 import java.util.Collections JavaDoc;
11 import java.util.List JavaDoc;
12
13 import org.eclipse.emf.common.util.AbstractEnumerator;
14
15 /**
16  * <!-- begin-user-doc -->
17  * A representation of the literals of the enumeration '<em><b>Db Vendor</b></em>',
18  * and utility methods for working with them.
19  * <!-- end-user-doc -->
20  * @see org.enhydra.dods.editor.Doml.DomlPackage#getDbVendor()
21  * @model
22  * @generated
23  */

24 public final class DbVendor extends AbstractEnumerator {
25     /**
26      * The '<em><b>Standard</b></em>' literal value.
27      * <!-- begin-user-doc -->
28      * <!-- end-user-doc -->
29      * @see #STANDARD_LITERAL
30      * @model name="Standard"
31      * @generated
32      * @ordered
33      */

34     public static final int STANDARD = 0;
35
36     /**
37      * The '<em><b>Instant DB</b></em>' literal value.
38      * <!-- begin-user-doc -->
39      * <!-- end-user-doc -->
40      * @see #INSTANT_DB_LITERAL
41      * @model name="InstantDB"
42      * @generated
43      * @ordered
44      */

45     public static final int INSTANT_DB = 1;
46
47     /**
48      * The '<em><b>Oracle</b></em>' literal value.
49      * <!-- begin-user-doc -->
50      * <!-- end-user-doc -->
51      * @see #ORACLE_LITERAL
52      * @model name="Oracle"
53      * @generated
54      * @ordered
55      */

56     public static final int ORACLE = 2;
57
58     /**
59      * The '<em><b>Informix</b></em>' literal value.
60      * <!-- begin-user-doc -->
61      * <!-- end-user-doc -->
62      * @see #INFORMIX_LITERAL
63      * @model name="Informix"
64      * @generated
65      * @ordered
66      */

67     public static final int INFORMIX = 3;
68
69     /**
70      * The '<em><b>MSQL</b></em>' literal value.
71      * <!-- begin-user-doc -->
72      * <!-- end-user-doc -->
73      * @see #MSQL_LITERAL
74      * @model
75      * @generated
76      * @ordered
77      */

78     public static final int MSQL = 4;
79
80     /**
81      * The '<em><b>Sybase</b></em>' literal value.
82      * <!-- begin-user-doc -->
83      * <!-- end-user-doc -->
84      * @see #SYBASE_LITERAL
85      * @model name="Sybase"
86      * @generated
87      * @ordered
88      */

89     public static final int SYBASE = 5;
90
91     /**
92      * The '<em><b>Postgre SQL</b></em>' literal value.
93      * <!-- begin-user-doc -->
94      * <!-- end-user-doc -->
95      * @see #POSTGRE_SQL_LITERAL
96      * @model name="PostgreSQL"
97      * @generated
98      * @ordered
99      */

100     public static final int POSTGRE_SQL = 6;
101
102     /**
103      * The '<em><b>DB2</b></em>' literal value.
104      * <!-- begin-user-doc -->
105      * <!-- end-user-doc -->
106      * @see #DB2_LITERAL
107      * @model
108      * @generated
109      * @ordered
110      */

111     public static final int DB2 = 7;
112
113     /**
114      * The '<em><b>QED</b></em>' literal value.
115      * <!-- begin-user-doc -->
116      * <!-- end-user-doc -->
117      * @see #QED_LITERAL
118      * @model
119      * @generated
120      * @ordered
121      */

122     public static final int QED = 8;
123
124     /**
125      * The '<em><b>My SQL</b></em>' literal value.
126      * <!-- begin-user-doc -->
127      * <!-- end-user-doc -->
128      * @see #MY_SQL_LITERAL
129      * @model name="MySQL"
130      * @generated
131      * @ordered
132      */

133     public static final int MY_SQL = 9;
134
135     /**
136      * The '<em><b>Mckoi SQL</b></em>' literal value.
137      * <!-- begin-user-doc -->
138      * <!-- end-user-doc -->
139      * @see #MCKOI_SQL_LITERAL
140      * @model name="MckoiSQL"
141      * @generated
142      * @ordered
143      */

144     public static final int MCKOI_SQL = 10;
145
146     /**
147      * The '<em><b>Standard</b></em>' literal object.
148      * <!-- begin-user-doc -->
149      * <p>
150      * If the meaning of '<em><b>Standard</b></em>' literal object isn't clear,
151      * there really should be more of a description here...
152      * </p>
153      * <!-- end-user-doc -->
154      * @see #STANDARD
155      * @generated
156      * @ordered
157      */

158     public static final DbVendor STANDARD_LITERAL = new DbVendor(STANDARD, "Standard");
159
160     /**
161      * The '<em><b>Instant DB</b></em>' literal object.
162      * <!-- begin-user-doc -->
163      * <p>
164      * If the meaning of '<em><b>Instant DB</b></em>' literal object isn't clear,
165      * there really should be more of a description here...
166      * </p>
167      * <!-- end-user-doc -->
168      * @see #INSTANT_DB
169      * @generated
170      * @ordered
171      */

172     public static final DbVendor INSTANT_DB_LITERAL = new DbVendor(INSTANT_DB, "InstantDB");
173
174     /**
175      * The '<em><b>Oracle</b></em>' literal object.
176      * <!-- begin-user-doc -->
177      * <p>
178      * If the meaning of '<em><b>Oracle</b></em>' literal object isn't clear,
179      * there really should be more of a description here...
180      * </p>
181      * <!-- end-user-doc -->
182      * @see #ORACLE
183      * @generated
184      * @ordered
185      */

186     public static final DbVendor ORACLE_LITERAL = new DbVendor(ORACLE, "Oracle");
187
188     /**
189      * The '<em><b>Informix</b></em>' literal object.
190      * <!-- begin-user-doc -->
191      * <p>
192      * If the meaning of '<em><b>Informix</b></em>' literal object isn't clear,
193      * there really should be more of a description here...
194      * </p>
195      * <!-- end-user-doc -->
196      * @see #INFORMIX
197      * @generated
198      * @ordered
199      */

200     public static final DbVendor INFORMIX_LITERAL = new DbVendor(INFORMIX, "Informix");
201
202     /**
203      * The '<em><b>MSQL</b></em>' literal object.
204      * <!-- begin-user-doc -->
205      * <p>
206      * If the meaning of '<em><b>MSQL</b></em>' literal object isn't clear,
207      * there really should be more of a description here...
208      * </p>
209      * <!-- end-user-doc -->
210      * @see #MSQL
211      * @generated
212      * @ordered
213      */

214     public static final DbVendor MSQL_LITERAL = new DbVendor(MSQL, "MSQL");
215
216     /**
217      * The '<em><b>Sybase</b></em>' literal object.
218      * <!-- begin-user-doc -->
219      * <p>
220      * If the meaning of '<em><b>Sybase</b></em>' literal object isn't clear,
221      * there really should be more of a description here...
222      * </p>
223      * <!-- end-user-doc -->
224      * @see #SYBASE
225      * @generated
226      * @ordered
227      */

228     public static final DbVendor SYBASE_LITERAL = new DbVendor(SYBASE, "Sybase");
229
230     /**
231      * The '<em><b>Postgre SQL</b></em>' literal object.
232      * <!-- begin-user-doc -->
233      * <p>
234      * If the meaning of '<em><b>Postgre SQL</b></em>' literal object isn't clear,
235      * there really should be more of a description here...
236      * </p>
237      * <!-- end-user-doc -->
238      * @see #POSTGRE_SQL
239      * @generated
240      * @ordered
241      */

242     public static final DbVendor POSTGRE_SQL_LITERAL = new DbVendor(POSTGRE_SQL, "PostgreSQL");
243
244     /**
245      * The '<em><b>DB2</b></em>' literal object.
246      * <!-- begin-user-doc -->
247      * <p>
248      * If the meaning of '<em><b>DB2</b></em>' literal object isn't clear,
249      * there really should be more of a description here...
250      * </p>
251      * <!-- end-user-doc -->
252      * @see #DB2
253      * @generated
254      * @ordered
255      */

256     public static final DbVendor DB2_LITERAL = new DbVendor(DB2, "DB2");
257
258     /**
259      * The '<em><b>QED</b></em>' literal object.
260      * <!-- begin-user-doc -->
261      * <p>
262      * If the meaning of '<em><b>QED</b></em>' literal object isn't clear,
263      * there really should be more of a description here...
264      * </p>
265      * <!-- end-user-doc -->
266      * @see #QED
267      * @generated
268      * @ordered
269      */

270     public static final DbVendor QED_LITERAL = new DbVendor(QED, "QED");
271
272     /**
273      * The '<em><b>My SQL</b></em>' literal object.
274      * <!-- begin-user-doc -->
275      * <p>
276      * If the meaning of '<em><b>My SQL</b></em>' literal object isn't clear,
277      * there really should be more of a description here...
278      * </p>
279      * <!-- end-user-doc -->
280      * @see #MY_SQL
281      * @generated
282      * @ordered
283      */

284     public static final DbVendor MY_SQL_LITERAL = new DbVendor(MY_SQL, "MySQL");
285
286     /**
287      * The '<em><b>Mckoi SQL</b></em>' literal object.
288      * <!-- begin-user-doc -->
289      * <p>
290      * If the meaning of '<em><b>Mckoi SQL</b></em>' literal object isn't clear,
291      * there really should be more of a description here...
292      * </p>
293      * <!-- end-user-doc -->
294      * @see #MCKOI_SQL
295      * @generated
296      * @ordered
297      */

298     public static final DbVendor MCKOI_SQL_LITERAL = new DbVendor(MCKOI_SQL, "MckoiSQL");
299
300     /**
301      * An array of all the '<em><b>Db Vendor</b></em>' enumerators.
302      * <!-- begin-user-doc -->
303      * <!-- end-user-doc -->
304      * @generated
305      */

306     private static final DbVendor[] VALUES_ARRAY =
307         new DbVendor[] {
308             STANDARD_LITERAL,
309             INSTANT_DB_LITERAL,
310             ORACLE_LITERAL,
311             INFORMIX_LITERAL,
312             MSQL_LITERAL,
313             SYBASE_LITERAL,
314             POSTGRE_SQL_LITERAL,
315             DB2_LITERAL,
316             QED_LITERAL,
317             MY_SQL_LITERAL,
318             MCKOI_SQL_LITERAL,
319         };
320
321     /**
322      * A public read-only list of all the '<em><b>Db Vendor</b></em>' enumerators.
323      * <!-- begin-user-doc -->
324      * <!-- end-user-doc -->
325      * @generated
326      */

327     public static final List JavaDoc VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
328
329     /**
330      * Returns the '<em><b>Db Vendor</b></em>' literal with the specified name.
331      * <!-- begin-user-doc -->
332      * <!-- end-user-doc -->
333      * @generated
334      */

335     public static DbVendor get(String JavaDoc name) {
336         for (int i = 0; i < VALUES_ARRAY.length; ++i) {
337             DbVendor result = VALUES_ARRAY[i];
338             if (result.toString().equals(name)) {
339                 return result;
340             }
341         }
342         return null;
343     }
344
345     /**
346      * Returns the '<em><b>Db Vendor</b></em>' literal with the specified value.
347      * <!-- begin-user-doc -->
348      * <!-- end-user-doc -->
349      * @generated
350      */

351     public static DbVendor get(int value) {
352         switch (value) {
353             case STANDARD: return STANDARD_LITERAL;
354             case INSTANT_DB: return INSTANT_DB_LITERAL;
355             case ORACLE: return ORACLE_LITERAL;
356             case INFORMIX: return INFORMIX_LITERAL;
357             case MSQL: return MSQL_LITERAL;
358             case SYBASE: return SYBASE_LITERAL;
359             case POSTGRE_SQL: return POSTGRE_SQL_LITERAL;
360             case DB2: return DB2_LITERAL;
361             case QED: return QED_LITERAL;
362             case MY_SQL: return MY_SQL_LITERAL;
363             case MCKOI_SQL: return MCKOI_SQL_LITERAL;
364         }
365         return null;
366     }
367
368     /**
369      * Only this class can construct instances.
370      * <!-- begin-user-doc -->
371      * <!-- end-user-doc -->
372      * @generated
373      */

374     private DbVendor(int value, String JavaDoc name) {
375         super(value, name);
376     }
377
378 } //DbVendor
379
Popular Tags