2002-10-31 Daniel Morgan <danmorg@sc.rr.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                 Type fieldType;
26
27                 #endregion // Fields
28
29                 #region Constructors
30
31                 public SchemaInfo ()
32                 {
33                 }
34
35                 #endregion // Constructors
36
37                 #region Properties
38
39                 public string TableName {
40                         get { return tableName; }
41                         set { tableName = value; }
42                 }
43
44                 public int ColumnOrdinal {
45                         get { return ordinal; }
46                         set { ordinal = value; }
47                 }
48
49                 public byte NumericPrecision {
50                         get { return precision; }
51                         set { precision = value; }
52                 }
53
54                 public byte NumericScale {
55                         get { return scale; }
56                         set { scale = value; }
57                 }
58
59                 public int ColumnSize {
60                         get { return size; }
61                         set { size = value; }
62                 }
63
64                 public string ColumnName {
65                         get { return columnName; }
66                         set { columnName = value; }
67                 }
68
69                 public String DataTypeName {
70                         get { return dataTypeName; }
71                         set { dataTypeName = value; }
72                 }
73
74                 public bool AllowDBNull {
75                         get { return nullable; }
76                         set { nullable = value; }
77                 }
78
79                 public bool IsReadOnly {
80                         get { return writable; }
81                         set { writable = value; }
82                 }
83
84                 public Type FieldType {
85                         get { return fieldType; }
86                         set { fieldType = value; }
87                 }
88                 
89                 #endregion // Properties
90
91         }
92 }