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 |
|
|
20 |
|
|
21 |
|
|
22 |
|
import java.util.Iterator; |
23 |
|
import java.util.List; |
24 |
|
import java.util.Map; |
25 |
|
|
26 |
|
import org.apache.commons.lang.enums.Enum; |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
public class SchemaType extends Enum |
35 |
|
{ |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
private static final long serialVersionUID = 17588853769472381L; |
40 |
|
|
41 |
156 |
public static final SchemaType BIT = new SchemaType("BIT"); |
42 |
156 |
public static final SchemaType TINYINT = new SchemaType("TINYINT"); |
43 |
156 |
public static final SchemaType SMALLINT = new SchemaType("SMALLINT"); |
44 |
156 |
public static final SchemaType INTEGER = new SchemaType("INTEGER"); |
45 |
156 |
public static final SchemaType BIGINT = new SchemaType("BIGINT"); |
46 |
156 |
public static final SchemaType FLOAT = new SchemaType("FLOAT"); |
47 |
156 |
public static final SchemaType REAL = new SchemaType("REAL"); |
48 |
156 |
public static final SchemaType NUMERIC = new SchemaType("NUMERIC"); |
49 |
156 |
public static final SchemaType DECIMAL = new SchemaType("DECIMAL"); |
50 |
156 |
public static final SchemaType CHAR = new SchemaType("CHAR"); |
51 |
156 |
public static final SchemaType VARCHAR = new SchemaType("VARCHAR"); |
52 |
156 |
public static final SchemaType LONGVARCHAR = new SchemaType("LONGVARCHAR"); |
53 |
156 |
public static final SchemaType DATE = new SchemaType("DATE"); |
54 |
156 |
public static final SchemaType TIME = new SchemaType("TIME"); |
55 |
156 |
public static final SchemaType TIMESTAMP = new SchemaType("TIMESTAMP"); |
56 |
156 |
public static final SchemaType BINARY = new SchemaType("BINARY"); |
57 |
156 |
public static final SchemaType VARBINARY = new SchemaType("VARBINARY"); |
58 |
156 |
public static final SchemaType LONGVARBINARY = new SchemaType("LONGVARBINARY"); |
59 |
156 |
public static final SchemaType NULL = new SchemaType("NULL"); |
60 |
156 |
public static final SchemaType OTHER = new SchemaType("OTHER"); |
61 |
156 |
public static final SchemaType JAVA_OBJECT = new SchemaType("JAVA_OBJECT"); |
62 |
156 |
public static final SchemaType DISTINCT = new SchemaType("DISTINCT"); |
63 |
156 |
public static final SchemaType STRUCT = new SchemaType("STRUCT"); |
64 |
156 |
public static final SchemaType ARRAY = new SchemaType("ARRAY"); |
65 |
156 |
public static final SchemaType BLOB = new SchemaType("BLOB"); |
66 |
156 |
public static final SchemaType CLOB = new SchemaType("CLOB"); |
67 |
156 |
public static final SchemaType REF = new SchemaType("REF"); |
68 |
156 |
public static final SchemaType BOOLEANINT = new SchemaType("BOOLEANINT"); |
69 |
156 |
public static final SchemaType BOOLEANCHAR = new SchemaType("BOOLEANCHAR"); |
70 |
156 |
public static final SchemaType DOUBLE = new SchemaType("DOUBLE"); |
71 |
|
|
72 |
|
private SchemaType(String type) |
73 |
|
{ |
74 |
4680 |
super(type); |
75 |
4680 |
} |
76 |
|
|
77 |
|
public static SchemaType getEnum(String type) |
78 |
|
{ |
79 |
21096 |
return (SchemaType) getEnum(SchemaType.class, type); |
80 |
|
} |
81 |
|
|
82 |
|
public static Map getEnumMap() |
83 |
|
{ |
84 |
0 |
return getEnumMap(SchemaType.class); |
85 |
|
} |
86 |
|
|
87 |
|
public static List getEnumList() |
88 |
|
{ |
89 |
0 |
return getEnumList(SchemaType.class); |
90 |
|
} |
91 |
|
|
92 |
|
public static Iterator iterator() |
93 |
|
{ |
94 |
192 |
return iterator(SchemaType.class); |
95 |
|
} |
96 |
|
|
97 |
|
} |