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 * Enum for types used in Torque schema.xml files.
30 *
31 * @author <a href="mailto:mpoeschl@marmot.at>Martin Poeschl</a>
32 * @version $Id: SchemaType.java 473814 2006-11-11 22:30:30Z tv $
33 */
34 public class SchemaType extends Enum
35 {
36 /***
37 * Serialization support
38 */
39 private static final long serialVersionUID = 17588853769472381L;
40
41 public static final SchemaType BIT = new SchemaType("BIT");
42 public static final SchemaType TINYINT = new SchemaType("TINYINT");
43 public static final SchemaType SMALLINT = new SchemaType("SMALLINT");
44 public static final SchemaType INTEGER = new SchemaType("INTEGER");
45 public static final SchemaType BIGINT = new SchemaType("BIGINT");
46 public static final SchemaType FLOAT = new SchemaType("FLOAT");
47 public static final SchemaType REAL = new SchemaType("REAL");
48 public static final SchemaType NUMERIC = new SchemaType("NUMERIC");
49 public static final SchemaType DECIMAL = new SchemaType("DECIMAL");
50 public static final SchemaType CHAR = new SchemaType("CHAR");
51 public static final SchemaType VARCHAR = new SchemaType("VARCHAR");
52 public static final SchemaType LONGVARCHAR = new SchemaType("LONGVARCHAR");
53 public static final SchemaType DATE = new SchemaType("DATE");
54 public static final SchemaType TIME = new SchemaType("TIME");
55 public static final SchemaType TIMESTAMP = new SchemaType("TIMESTAMP");
56 public static final SchemaType BINARY = new SchemaType("BINARY");
57 public static final SchemaType VARBINARY = new SchemaType("VARBINARY");
58 public static final SchemaType LONGVARBINARY = new SchemaType("LONGVARBINARY");
59 public static final SchemaType NULL = new SchemaType("NULL");
60 public static final SchemaType OTHER = new SchemaType("OTHER");
61 public static final SchemaType JAVA_OBJECT = new SchemaType("JAVA_OBJECT");
62 public static final SchemaType DISTINCT = new SchemaType("DISTINCT");
63 public static final SchemaType STRUCT = new SchemaType("STRUCT");
64 public static final SchemaType ARRAY = new SchemaType("ARRAY");
65 public static final SchemaType BLOB = new SchemaType("BLOB");
66 public static final SchemaType CLOB = new SchemaType("CLOB");
67 public static final SchemaType REF = new SchemaType("REF");
68 public static final SchemaType BOOLEANINT = new SchemaType("BOOLEANINT");
69 public static final SchemaType BOOLEANCHAR = new SchemaType("BOOLEANCHAR");
70 public static final SchemaType DOUBLE = new SchemaType("DOUBLE");
71
72 private SchemaType(String type)
73 {
74 super(type);
75 }
76
77 public static SchemaType getEnum(String type)
78 {
79 return (SchemaType) getEnum(SchemaType.class, type);
80 }
81
82 public static Map getEnumMap()
83 {
84 return getEnumMap(SchemaType.class);
85 }
86
87 public static List getEnumList()
88 {
89 return getEnumList(SchemaType.class);
90 }
91
92 public static Iterator iterator()
93 {
94 return iterator(SchemaType.class);
95 }
96
97 }