2002-10-30 Tim Coleman (tim@timcoleman.com)
[mono.git] / mcs / class / System.Data / System.Data.Common / SchemaInfo.cs
1 //
2 // System.Data.Common.SchemaInfo.cs
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2002
8 //
9
10 namespace System.Data.Common {
11         internal class SchemaInfo
12         {
13                 #region Fields
14
15                 string columnName;
16                 string tableName;
17                 string dataTypeName;
18                 object value;
19                 bool nullable;
20                 bool writable;
21                 int ordinal;
22                 int size;
23                 byte precision;
24                 byte scale;
25
26                 #endregion // Fields
27
28                 #region Constructors
29
30                 public SchemaInfo ()
31                 {
32                 }
33
34                 #endregion // Constructors
35
36                 #region Properties
37
38                 public string TableName {
39                         get { return tableName; }
40                         set { tableName = value; }
41                 }
42
43                 public int ColumnOrdinal {
44                         get { return ordinal; }
45                         set { ordinal = value; }
46                 }
47
48                 public byte NumericPrecision {
49                         get { return precision; }
50                         set { precision = value; }
51                 }
52
53                 public byte NumericScale {
54                         get { return scale; }
55                         set { scale = value; }
56                 }
57
58                 public int ColumnSize {
59                         get { return size; }
60                         set { size = value; }
61                 }
62
63                 public string ColumnName {
64                         get { return columnName; }
65                         set { columnName = value; }
66                 }
67
68                 public String DataTypeName {
69                         get { return dataTypeName; }
70                         set { dataTypeName = value; }
71                 }
72
73                 public bool Nullable {
74                         get { return nullable; }
75                         set { nullable = value; }
76                 }
77
78                 public bool Writable {
79                         get { return writable; }
80                         set { writable = value; }
81                 }
82                 
83                 #endregion // Properties
84
85         }
86 }