KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > datasystem > interfaces > Datatype


1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces;
2 public interface Datatype
3 {
4      public static int BYTE = 0;
5      public static int TINYINT = 1;
6      public static int SMALLINT = 2;
7      public static int SHORT = 3;
8      public static int INT = 4;
9      public static int INTEGER = 5;
10      public static int LONG = 6;
11      public static int BIGINT = 7;
12      public static int REAL = 8;
13      public static int FLOAT = 9;
14      public static int DOUBLE = 10;
15      public static int DOUBLEPRECISION = 11;
16      public static int NUMERIC = 12;
17      public static int DECIMAL = 13;
18      public static int DEC = 14;
19      public static int BIGDECIMAL = 15;
20      public static int VARCHAR = 16;
21      public static int CHAR = 17;
22      public static int CHARACTERVARYING = 18;
23      public static int CHARVARYING = 19;
24      public static int CHARACTER = 20;
25      public static int BOOLEAN = 21;
26      public static int DATE = 22;
27      public static int MODULE = 23;
28      public static int SUM = 24;
29      public static int ARRAY = 25;
30      public static int RECORD = 26;
31      public static int RECORDSET = 27;
32      public static int TIME = 28;
33      public static int TIMESTAMP = 29;
34      public static int TIME_WITH_TIMEZONE = 30;
35      public static int TIMESTAMP_WITH_TIMEZONE = 31;
36      public static int BLOB = 32;
37      public static int CLOB = 33;
38      public static int REF = 34;
39      public static int STRUCT = 35;
40
41      public static int CHARACTERLARGEOBJECT = 36;
42      public static int CHARLARGEOBJECT = 37;
43      public static int BINARYLARGEOBJECT = 38;
44      public static int BIT = 39;
45      public static int BITVARYING = 40;
46
47      public static int LONGVARCHAR = 41;
48      public static int LONGVARBINARY = 42;
49      public static int VARBINARY = 43;
50      public static int BINARY = 44;
51          public static int TABLEKEY = 45;
52
53
54
55   public static int LONGSIZE = 8;
56   public static int INTSIZE = 4;
57   public static int FLOATSIZE = 8;
58   public static int DOUBLESIZE = 8;
59   public static int DATESIZE = 8;
60   public static int TIMESIZE = 8;
61   public static int TIMESTAMPSIZE= 8;
62   public static int SHORTSIZE = 2;
63   public static int BOOLEANSIZE = 1;
64   public static int MODULESIZE = 8;
65   public static int BYTESIZE = 1;
66   public static int REALSIZE = 4;
67
68   public static int LONG_PRECISION = 19;
69   public static int INT_PRECISION = 10;
70   public static int FLOAT_PRECISION = 15;
71   public static int DOUBLE_PRECISION = 15;
72   public static int DATE_PRECISION = 19;
73   public static int TIME_PRECISION = 19;
74   public static int TIMESTAMP_PRECISION = 23;
75   public static int SHORT_PRECISION = 5;
76   public static int BOOLEAN_PRECISION = 1;
77   public static int BYTE_PRECISION = 3;
78   public static int REAL_PRECISION = 7;
79   public static int BIGDECIMAL_PRECISION = 28;
80
81 }
82
Popular Tags