1 |
|
package org.apache.torque.engine.database.model; |
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
import java.util.Iterator; |
20 |
|
import java.util.List; |
21 |
|
import java.util.Map; |
22 |
|
|
23 |
|
import org.apache.commons.lang.enum.Enum; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
public class SchemaType extends Enum |
32 |
|
{ |
33 |
13 |
public static final SchemaType BIT = new SchemaType("BIT"); |
34 |
13 |
public static final SchemaType TINYINT = new SchemaType("TINYINT"); |
35 |
13 |
public static final SchemaType SMALLINT = new SchemaType("SMALLINT"); |
36 |
13 |
public static final SchemaType INTEGER = new SchemaType("INTEGER"); |
37 |
13 |
public static final SchemaType BIGINT = new SchemaType("BIGINT"); |
38 |
13 |
public static final SchemaType FLOAT = new SchemaType("FLOAT"); |
39 |
13 |
public static final SchemaType REAL = new SchemaType("REAL"); |
40 |
13 |
public static final SchemaType NUMERIC = new SchemaType("NUMERIC"); |
41 |
13 |
public static final SchemaType DECIMAL = new SchemaType("DECIMAL"); |
42 |
13 |
public static final SchemaType CHAR = new SchemaType("CHAR"); |
43 |
13 |
public static final SchemaType VARCHAR = new SchemaType("VARCHAR"); |
44 |
13 |
public static final SchemaType LONGVARCHAR = new SchemaType("LONGVARCHAR"); |
45 |
13 |
public static final SchemaType DATE = new SchemaType("DATE"); |
46 |
13 |
public static final SchemaType TIME = new SchemaType("TIME"); |
47 |
13 |
public static final SchemaType TIMESTAMP = new SchemaType("TIMESTAMP"); |
48 |
13 |
public static final SchemaType BINARY = new SchemaType("BINARY"); |
49 |
13 |
public static final SchemaType VARBINARY = new SchemaType("VARBINARY"); |
50 |
13 |
public static final SchemaType LONGVARBINARY = new SchemaType("LONGVARBINARY"); |
51 |
13 |
public static final SchemaType NULL = new SchemaType("NULL"); |
52 |
13 |
public static final SchemaType OTHER = new SchemaType("OTHER"); |
53 |
13 |
public static final SchemaType JAVA_OBJECT = new SchemaType("JAVA_OBJECT"); |
54 |
13 |
public static final SchemaType DISTINCT = new SchemaType("DISTINCT"); |
55 |
13 |
public static final SchemaType STRUCT = new SchemaType("STRUCT"); |
56 |
13 |
public static final SchemaType ARRAY = new SchemaType("ARRAY"); |
57 |
13 |
public static final SchemaType BLOB = new SchemaType("BLOB"); |
58 |
13 |
public static final SchemaType CLOB = new SchemaType("CLOB"); |
59 |
13 |
public static final SchemaType REF = new SchemaType("REF"); |
60 |
13 |
public static final SchemaType BOOLEANINT = new SchemaType("BOOLEANINT"); |
61 |
13 |
public static final SchemaType BOOLEANCHAR = new SchemaType("BOOLEANCHAR"); |
62 |
13 |
public static final SchemaType DOUBLE = new SchemaType("DOUBLE"); |
63 |
|
|
64 |
|
private SchemaType(String type) |
65 |
|
{ |
66 |
390 |
super(type); |
67 |
390 |
} |
68 |
|
|
69 |
|
public static SchemaType getEnum(String type) |
70 |
|
{ |
71 |
1758 |
return (SchemaType) getEnum(SchemaType.class, type); |
72 |
|
} |
73 |
|
|
74 |
|
public static Map getEnumMap() |
75 |
|
{ |
76 |
0 |
return getEnumMap(SchemaType.class); |
77 |
|
} |
78 |
|
|
79 |
|
public static List getEnumList() |
80 |
|
{ |
81 |
0 |
return getEnumList(SchemaType.class); |
82 |
|
} |
83 |
|
|
84 |
|
public static Iterator iterator() |
85 |
|
{ |
86 |
17 |
return iterator(SchemaType.class); |
87 |
|
} |
88 |
|
|
89 |
|
} |