1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.dbforms.config;
25
26
27 /***
28 * DOCUMENT ME!
29 *
30 * @author $author$
31 * @version $Revision: 1.7 $
32 */
33 public class FieldTypes {
34 /*** DOCUMENT ME! */
35 public static final int INTEGER = java.sql.Types.INTEGER;
36
37 /*** DOCUMENT ME! */
38 public static final int CHAR = java.sql.Types.CHAR;
39 public static final int VARCHAR = java.sql.Types.VARCHAR;
40 public static final int LONGVARCHAR = java.sql.Types.LONGVARCHAR;
41
42 /*** DOCUMENT ME! */
43 public static final int DATE = java.sql.Types.DATE;
44
45 /*** DOCUMENT ME! */
46 public static final int TIMESTAMP = java.sql.Types.TIMESTAMP;
47
48 /*** DOCUMENT ME! */
49 public static final int TIME = java.sql.Types.TIME;
50
51 /*** DOCUMENT ME! */
52 public static final int DOUBLE = java.sql.Types.DOUBLE;
53
54 /*** DOCUMENT ME! */
55 public static final int FLOAT = java.sql.Types.FLOAT;
56
57 /*** DOCUMENT ME! */
58 public static final int BLOB = java.sql.Types.BLOB;
59
60 /*** DOCUMENT ME! */
61 public static final int DISKBLOB = 4200;
62
63 /*** DOCUMENT ME! */
64 public static final int NUMERIC = java.sql.Types.NUMERIC;
65
66 /*** DOCUMENT ME! */
67 public static final int BOOLEAN = java.sql.Types.BOOLEAN;
68 public static boolean isCHAR(int type) {
69 return (type == CHAR) || (type == VARCHAR) || (type == LONGVARCHAR);
70 }
71 }