* Makefile: Build the make-map.exe in Mono.Unix.Native; add /nowarn:0618 to
[mono.git] / mcs / class / System.Data / System.Data.Common / DbTypes.cs
1 using System;\r
2 \r
3 namespace System.Data.Common\r
4 {\r
5         internal class DbTypes\r
6         {\r
7 #if TARGET_JVM\r
8                 #region java.sql.Types constants\r
9 \r
10                 internal enum JavaSqlTypes {\r
11                         ARRAY = 2003 ,\r
12                         BIGINT = -5, \r
13                         BINARY = -2 ,\r
14                         BIT = -7 ,\r
15                         BLOB = 2004, \r
16                         BOOLEAN = 16, \r
17                         CHAR = 1, \r
18                         CLOB = 2005, \r
19                         DATALINK = 70, \r
20                         DATE = 91, \r
21                         DECIMAL = 3, \r
22                         DISTINCT = 2001, \r
23                         DOUBLE = 8, \r
24                         FLOAT = 6, \r
25                         INTEGER = 4, \r
26                         JAVA_OBJECT = 2000, \r
27                         LONGVARBINARY = -4,\r
28                         LONGVARCHAR = -1, \r
29                         NULL = 0, \r
30                         NUMERIC = 2 ,\r
31                         OTHER = 1111 ,\r
32                         REAL = 7 ,\r
33                         REF = 2006 ,\r
34                         SMALLINT = 5,\r
35                         STRUCT = 2002, \r
36                         TIME = 92, \r
37                         TIMESTAMP = 93, \r
38                         TINYINT = -6, \r
39                         VARBINARY = -3, \r
40                         VARCHAR = 12,\r
41 //                      NOTSET = int.MinValue\r
42                 }\r
43 \r
44 \r
45                 #endregion // java.sql.Types constants\r
46 #endif\r
47 \r
48                 #region .Net types constants\r
49 \r
50                 internal static readonly Type TypeOfBoolean = typeof(Boolean);\r
51                 internal static readonly Type TypeOfSByte = typeof(SByte);\r
52                 internal static readonly Type TypeOfChar = typeof(Char);\r
53                 internal static readonly Type TypeOfInt16 = typeof(Int16);\r
54                 internal static readonly Type TypeOfInt32 = typeof(Int32);\r
55                 internal static readonly Type TypeOfInt64 = typeof(Int64);\r
56                 internal static readonly Type TypeOfByte = typeof(Byte);\r
57                 internal static readonly Type TypeOfUInt16 = typeof(UInt16);\r
58                 internal static readonly Type TypeOfUInt32 = typeof(UInt32);\r
59                 internal static readonly Type TypeOfUInt64 = typeof(UInt64);\r
60                 internal static readonly Type TypeOfDouble = typeof(Double);\r
61                 internal static readonly Type TypeOfSingle = typeof(Single);\r
62                 internal static readonly Type TypeOfDecimal = typeof(Decimal);\r
63                 internal static readonly Type TypeOfString = typeof(String);\r
64                 internal static readonly Type TypeOfDateTime = typeof(DateTime);                \r
65                 internal static readonly Type TypeOfObject = typeof(object);\r
66                 internal static readonly Type TypeOfGuid = typeof(Guid);\r
67                 internal static readonly Type TypeOfType = typeof(Type);\r
68 \r
69                 // additional types\r
70                 internal static readonly Type TypeOfByteArray = typeof(Byte[]);\r
71                 internal static readonly Type TypeOfFloat = typeof (float);\r
72                 internal static readonly Type TypeOfTimespan = typeof (TimeSpan);\r
73 \r
74                 #endregion // .Net types constants\r
75         }\r
76 }\r