2003-11-26 Tim Coleman <tim@timcoleman.com>
[mono.git] / mcs / class / System.Data / System.Data / DataTableReader.cs
1 //
2 // System.Data.DataTableReader.cs
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2003
8 //
9
10 #if NET_1_2
11
12 using System.Collections;
13 using System.Data.Common;
14
15 namespace System.Data {
16         public sealed class DataTableReader : DbDataReader
17         {
18                 bool closed;
19                 DataTable[] dataTables;
20                 int index;
21
22                 #region Constructors
23
24                 [MonoTODO]
25                 public DataTableReader (DataTable dt)
26                         : this (new DataTable[] {dt})
27                 {
28                 }
29
30                 [MonoTODO]
31                 public DataTableReader (DataTable[] dataTables)
32                 {
33                         this.dataTables = dataTables;
34                         closed = false;
35                         index = 0;
36                 }
37
38                 #endregion // Constructors
39
40                 #region Properties
41
42                 public override int Depth {
43                         get { return 0; }
44                 }
45
46                 public override int FieldCount {
47                         get { return dataTables [index].Columns.Count; }
48                 }
49
50                 public override bool HasRows {
51                         get { return dataTables [index].Rows.Count > 0; }
52                 }
53
54                 public override bool IsClosed {
55                         get { return closed; }
56                 }
57
58                 [MonoTODO]
59                 public override object this [int index] {
60                         get { throw new NotImplementedException (); }
61                 }
62
63                 [MonoTODO]
64                 public override object this [string name] {
65                         get { throw new NotImplementedException (); }
66                 }
67
68                 [MonoTODO]
69                 public override int RecordsAffected {
70                         get { throw new NotImplementedException (); }
71                 }
72
73                 [MonoTODO]
74                 public override int VisibleFieldCount {
75                         get { throw new NotImplementedException (); }
76                 }
77
78                 #endregion // Properties
79
80                 #region Methods
81
82                 [MonoTODO]
83                 public override void Close ()
84                 {
85                         closed = true;
86                 }
87
88                 [MonoTODO]
89                 public override void Dispose ()
90                 {
91                         throw new NotImplementedException ();
92                 }
93
94                 [MonoTODO]
95                 public override bool GetBoolean (int i)
96                 {
97                         throw new NotImplementedException ();
98                 }
99
100                 [MonoTODO]
101                 public override byte GetByte (int i)
102                 {
103                         throw new NotImplementedException ();
104                 }
105
106                 [MonoTODO]
107                 public override long GetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length)
108                 {
109                         throw new NotImplementedException ();
110                 }
111
112                 [MonoTODO]
113                 public override char GetChar (int i)
114                 {
115                         throw new NotImplementedException ();
116                 }
117
118                 [MonoTODO]
119                 public override long GetChars (int i, long dataIndex, char[] buffer, int bufferIndex, int length)
120                 {
121                         throw new NotImplementedException ();
122                 }
123
124                 [MonoTODO]
125                 public override string GetDataTypeName (int i)
126                 {
127                         throw new NotImplementedException ();
128                 }
129
130                 [MonoTODO]
131                 public override DateTime GetDateTime (int i)
132                 {
133                         throw new NotImplementedException ();
134                 }
135
136                 [MonoTODO]
137                 public override decimal GetDecimal (int i)
138                 {
139                         throw new NotImplementedException ();
140                 }
141
142                 [MonoTODO]
143                 public override double GetDouble (int i)
144                 {
145                         throw new NotImplementedException ();
146                 }
147
148                 [MonoTODO]
149                 public override IEnumerator GetEnumerator ()
150                 {
151                         throw new NotImplementedException ();
152                 }
153
154                 [MonoTODO]
155                 public override Type GetFieldProviderSpecificType (int i)
156                 {
157                         throw new NotImplementedException ();
158                 }
159
160                 [MonoTODO]
161                 public override Type GetFieldType (int i)
162                 {
163                         throw new NotImplementedException ();
164                 }
165
166                 [MonoTODO]
167                 public override float GetFloat (int i)
168                 {
169                         throw new NotImplementedException ();
170                 }
171
172                 [MonoTODO]
173                 public override Guid GetGuid (int i)
174                 {
175                         throw new NotImplementedException ();
176                 }
177
178                 [MonoTODO]
179                 public override short GetInt16 (int i)
180                 {
181                         throw new NotImplementedException ();
182                 }
183
184                 [MonoTODO]
185                 public override int GetInt32 (int i)
186                 {
187                         throw new NotImplementedException ();
188                 }
189
190                 [MonoTODO]
191                 public override long GetInt64 (int i)
192                 {
193                         throw new NotImplementedException ();
194                 }
195
196                 [MonoTODO]
197                 public override string GetName (int i)
198                 {
199                         throw new NotImplementedException ();
200                 }
201
202                 [MonoTODO]
203                 public override int GetOrdinal (string name)
204                 {
205                         throw new NotImplementedException ();
206                 }
207
208                 [MonoTODO]
209                 public override object GetProviderSpecificValue (int i)
210                 {
211                         throw new NotImplementedException ();
212                 }
213
214                 [MonoTODO]
215                 public override int GetProviderSpecificValues (object[] values)
216                 {
217                         throw new NotImplementedException ();
218                 }
219
220                 [MonoTODO]
221                 public override DataTable GetSchemaTable ()
222                 {
223                         throw new NotImplementedException ();
224                 }
225
226                 [MonoTODO]
227                 public override string GetString (int i)
228                 {
229                         throw new NotImplementedException ();
230                 }
231
232                 [MonoTODO]
233                 public override object GetValue (int i)
234                 {
235                         throw new NotImplementedException ();
236                 }
237
238                 [MonoTODO]
239                 public override int GetValues (object[] values)
240                 {
241                         throw new NotImplementedException ();
242                 }
243
244                 [MonoTODO]
245                 public override bool IsDBNull (int i)
246                 {
247                         throw new NotImplementedException ();
248                 }
249
250                 [MonoTODO]
251                 public override bool NextResult ()
252                 {
253                         throw new NotImplementedException ();
254                 }
255
256                 [MonoTODO]
257                 public override bool Read ()
258                 {
259                         throw new NotImplementedException ();
260                 }
261
262                 #endregion // Methods
263         }
264 }
265
266 #endif // NET_1_2