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