[System.Net] Add support for .pac proxy config scripts on mac
[mono.git] / mcs / class / System.Data / System.Data.ProviderBase / DbDataReaderBase.cs
1 //
2 // System.Data.ProviderBase.DbDataReaderBase
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //       Boris Kirzner (borisk@mainsoft.com)
7 //
8 // Copyright (C) Tim Coleman, 2003
9 //
10
11 //
12 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
13 // (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
14 //
15 // Permission is hereby granted, free of charge, to any person obtaining
16 // a copy of this software and associated documentation files (the
17 // "Software"), to deal in the Software without restriction, including
18 // without limitation the rights to use, copy, modify, merge, publish,
19 // distribute, sublicense, and/or sell copies of the Software, and to
20 // permit persons to whom the Software is furnished to do so, subject to
21 // the following conditions:
22 // 
23 // The above copyright notice and this permission notice shall be
24 // included in all copies or substantial portions of the Software.
25 // 
26 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 //
34
35 #if NET_2_0 || TARGET_JVM
36
37 using System.Collections;
38 using System.Data.Common;
39 using System.Runtime.InteropServices;
40
41 namespace System.Data.ProviderBase {
42         public abstract class DbDataReaderBase : DbDataReader
43         {
44                 #region Fields
45                 
46                 CommandBehavior behavior;
47                 
48                 #endregion // Fields
49
50                 #region Constructors
51
52                 protected DbDataReaderBase (CommandBehavior behavior)
53                 {
54                         this.behavior = behavior;
55                 }
56
57                 #endregion // Constructors
58
59                 #region Properties
60
61                 protected CommandBehavior CommandBehavior {
62                         get { return behavior; }
63                 }
64
65                 public override int Depth {
66                         // default value to be overriden by user
67                         get { return 0; }
68                 }
69
70                 [MonoTODO]
71                 public override int FieldCount {
72                         get { throw new NotImplementedException (); }
73                 }
74
75                 [MonoTODO]
76                 public override bool HasRows {
77                         get { throw new NotImplementedException (); }
78                 }
79
80                 [MonoTODO]
81                 public override bool IsClosed {
82                         get { throw new NotImplementedException (); }
83                 }
84
85 #if NET_2_0
86                 protected abstract bool IsValidRow { get; }
87 #endif
88
89                 [MonoTODO]
90                 public override object this [[Optional] int index] {
91                         get { throw new NotImplementedException (); }
92                 }
93
94                 [MonoTODO]
95                 public override object this [[Optional] string columnName] {
96                         get { throw new NotImplementedException (); }
97                 }
98
99                 [MonoTODO]
100                 public override int RecordsAffected {
101                         get { throw new NotImplementedException (); }
102                 }
103
104                 #endregion // Properties
105
106                 #region Methods
107
108                 [MonoTODO]
109                 protected void AssertReaderHasColumns ()
110                 {
111                         throw new NotImplementedException ();
112                 }
113
114                 [MonoTODO]
115                 protected void AssertReaderHasData ()
116                 {
117                         throw new NotImplementedException ();
118                 }
119
120                 [MonoTODO]
121                 protected void AssertReaderIsOpen (string methodName)
122                 {
123                         throw new NotImplementedException ();
124                 }
125
126                 [MonoTODO]
127                 public override void Close ()
128                 {
129                         throw new NotImplementedException ();
130                 }
131
132                 [MonoTODO]
133                 protected static DataTable CreateSchemaTable ()
134                 {
135                         throw new NotImplementedException ();
136                 }
137
138                 protected override void Dispose (bool disposing)
139                 {
140                         if (disposing)
141                                 Close ();
142                 }
143
144                 [MonoTODO]
145                 protected virtual void FillSchemaTable (DataTable dataTable)
146                 {
147                         throw new NotImplementedException ();
148                 }
149
150                 [MonoTODO]
151                 public override bool GetBoolean (int ordinal)
152                 {
153                         throw new NotImplementedException ();
154                 }
155
156                 [MonoTODO]
157                 public override byte GetByte (int ordinal)
158                 {
159                         throw new NotImplementedException ();
160                 }
161
162                 [MonoTODO]
163                 public override long GetBytes (int ordinal, long fieldoffset, byte[] buffer, int bufferoffset, int length)
164                 {
165                         throw new NotImplementedException ();
166                 }
167
168                 [MonoTODO]
169                 public override char GetChar (int ordinal)
170                 {
171                         throw new NotImplementedException ();
172                 }
173
174                 [MonoTODO]
175                 public override long GetChars (int ordinal, long fieldoffset, char[] buffer, int bufferoffset, int length)
176                 {
177                         throw new NotImplementedException ();
178                 }
179
180                 [MonoTODO]
181                 public override string GetDataTypeName (int ordinal)
182                 {
183                         throw new NotImplementedException ();
184                 }
185
186                 [MonoTODO]
187                 public override DateTime GetDateTime (int ordinal)
188                 {
189                         throw new NotImplementedException ();
190                 }
191
192                 [MonoTODO]
193                 public override decimal GetDecimal (int ordinal)
194                 {
195                         throw new NotImplementedException ();
196                 }
197
198                 [MonoTODO]
199                 public override double GetDouble (int ordinal)
200                 {
201                         throw new NotImplementedException ();
202                 }
203
204                 public override IEnumerator GetEnumerator ()
205                 {
206                         bool closeReader = (CommandBehavior & CommandBehavior.CloseConnection) != 0;
207                         return new DbEnumerator (this , closeReader);
208                 }
209
210                 [MonoTODO]
211                 public override Type GetFieldType (int ordinal)
212                 {
213                         throw new NotImplementedException ();
214                 }
215
216                 [MonoTODO]
217                 public override float GetFloat (int ordinal)
218                 {
219                         throw new NotImplementedException ();
220                 }
221
222                 [MonoTODO]
223                 public override Guid GetGuid (int ordinal)
224                 {
225                         throw new NotImplementedException ();
226                 }
227
228                 [MonoTODO]
229                 public override short GetInt16 (int ordinal)
230                 {
231                         throw new NotImplementedException ();
232                 }
233
234                 [MonoTODO]
235                 public override int GetInt32 (int ordinal)
236                 {
237                         throw new NotImplementedException ();
238                 }
239
240                 [MonoTODO]
241                 public override long GetInt64 (int ordinal)
242                 {
243                         throw new NotImplementedException ();
244                 }
245
246                 [MonoTODO]
247                 public override string GetName (int ordinal)
248                 {
249                         throw new NotImplementedException ();
250                 }
251
252                 [MonoTODO]
253                 public override int GetOrdinal (string name)
254                 {
255                         throw new NotImplementedException ();
256                 }
257
258                 [MonoTODO]
259                 public override DataTable GetSchemaTable ()
260                 {
261                         throw new NotImplementedException ();
262                 }
263
264                 [MonoTODO]
265                 public override string GetString (int ordinal)
266                 {
267                         throw new NotImplementedException ();
268                 }
269
270                 [MonoTODO]
271                 public override object GetValue (int ordinal)
272                 {
273                         throw new NotImplementedException ();
274                 }
275
276                 [MonoTODO]
277                 public override int GetValues (object[] values)
278                 {
279                         throw new NotImplementedException ();
280                 }
281
282                 [MonoTODO]
283                 protected bool IsCommandBehavior (CommandBehavior condition)
284                 {
285                         throw new NotImplementedException ();
286                 }
287
288                 [MonoTODO]
289                 public override bool IsDBNull (int ordinal)
290                 {
291                         throw new NotImplementedException ();
292                 }
293
294                 [MonoTODO]
295                 public override bool NextResult ()
296                 {
297                         throw new NotImplementedException ();
298                 }
299
300                 [MonoTODO]
301                 public override bool Read ()
302                 {
303                         throw new NotImplementedException ();
304                 }
305
306                 #endregion // Methods
307         }
308 }
309
310 #endif