**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Data / System.Data.ProviderBase / DbDataReaderBase.cs
blobe5e5f05fe2256bc26384f2df6da15cc021af5fd5
1 //
2 // System.Data.ProviderBase.DbDataReaderBase
3 //
4 // Author:
5 // Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2003
8 //
11 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
13 // Permission is hereby granted, free of charge, to any person obtaining
14 // a copy of this software and associated documentation files (the
15 // "Software"), to deal in the Software without restriction, including
16 // without limitation the rights to use, copy, modify, merge, publish,
17 // distribute, sublicense, and/or sell copies of the Software, and to
18 // permit persons to whom the Software is furnished to do so, subject to
19 // the following conditions:
20 //
21 // The above copyright notice and this permission notice shall be
22 // included in all copies or substantial portions of the Software.
23 //
24 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 #if NET_2_0
35 using System.Collections;
36 using System.Data.Common;
37 using System.Runtime.InteropServices;
39 namespace System.Data.ProviderBase {
40 public abstract class DbDataReaderBase : DbDataReader
42 #region Fields
44 CommandBehavior behavior;
46 #endregion // Fields
48 #region Constructors
50 protected DbDataReaderBase (CommandBehavior behavior)
52 this.behavior = behavior;
55 #endregion // Constructors
57 #region Properties
59 protected CommandBehavior CommandBehavior {
60 get { return behavior; }
63 [MonoTODO]
64 public override int Depth {
65 get { throw new NotImplementedException (); }
68 [MonoTODO]
69 public override int FieldCount {
70 get { throw new NotImplementedException (); }
73 [MonoTODO]
74 public override bool HasRows {
75 get { throw new NotImplementedException (); }
78 [MonoTODO]
79 public override bool IsClosed {
80 get { throw new NotImplementedException (); }
83 protected abstract bool IsValidRow { get; }
85 [MonoTODO]
86 public override object this [[Optional] int index] {
87 get { throw new NotImplementedException (); }
90 [MonoTODO]
91 public override object this [[Optional] string columnName] {
92 get { throw new NotImplementedException (); }
95 [MonoTODO]
96 public override int RecordsAffected {
97 get { throw new NotImplementedException (); }
100 #endregion // Properties
102 #region Methods
104 [MonoTODO]
105 protected void AssertReaderHasColumns ()
107 throw new NotImplementedException ();
110 [MonoTODO]
111 protected void AssertReaderHasData ()
113 throw new NotImplementedException ();
116 [MonoTODO]
117 protected void AssertReaderIsOpen (string methodName)
119 throw new NotImplementedException ();
122 [MonoTODO]
123 public override void Close ()
125 throw new NotImplementedException ();
128 [MonoTODO]
129 protected static DataTable CreateSchemaTable ()
131 throw new NotImplementedException ();
134 [MonoTODO]
135 public override void Dispose ()
137 throw new NotImplementedException ();
140 [MonoTODO]
141 protected virtual void FillSchemaTable (DataTable dataTable)
143 throw new NotImplementedException ();
146 [MonoTODO]
147 public override bool GetBoolean (int ordinal)
149 throw new NotImplementedException ();
152 [MonoTODO]
153 public override byte GetByte (int ordinal)
155 throw new NotImplementedException ();
158 [MonoTODO]
159 public override long GetBytes (int ordinal, long fieldoffset, byte[] buffer, int bufferoffset, int length)
161 throw new NotImplementedException ();
164 [MonoTODO]
165 public override char GetChar (int ordinal)
167 throw new NotImplementedException ();
170 [MonoTODO]
171 public override long GetChars (int ordinal, long fieldoffset, char[] buffer, int bufferoffset, int length)
173 throw new NotImplementedException ();
176 [MonoTODO]
177 public override string GetDataTypeName (int ordinal)
179 throw new NotImplementedException ();
182 [MonoTODO]
183 public override DateTime GetDateTime (int ordinal)
185 throw new NotImplementedException ();
188 [MonoTODO]
189 public override decimal GetDecimal (int ordinal)
191 throw new NotImplementedException ();
194 [MonoTODO]
195 public override double GetDouble (int ordinal)
197 throw new NotImplementedException ();
200 [MonoTODO]
201 public override IEnumerator GetEnumerator ()
203 throw new NotImplementedException ();
206 [MonoTODO]
207 public override Type GetFieldType (int ordinal)
209 throw new NotImplementedException ();
212 [MonoTODO]
213 public override float GetFloat (int ordinal)
215 throw new NotImplementedException ();
218 [MonoTODO]
219 public override Guid GetGuid (int ordinal)
221 throw new NotImplementedException ();
224 [MonoTODO]
225 public override short GetInt16 (int ordinal)
227 throw new NotImplementedException ();
230 [MonoTODO]
231 public override int GetInt32 (int ordinal)
233 throw new NotImplementedException ();
236 [MonoTODO]
237 public override long GetInt64 (int ordinal)
239 throw new NotImplementedException ();
242 [MonoTODO]
243 public override string GetName (int ordinal)
245 throw new NotImplementedException ();
248 [MonoTODO]
249 public override int GetOrdinal (string name)
251 throw new NotImplementedException ();
254 [MonoTODO]
255 public override DataTable GetSchemaTable ()
257 throw new NotImplementedException ();
260 [MonoTODO]
261 public override string GetString (int ordinal)
263 throw new NotImplementedException ();
266 [MonoTODO]
267 public override object GetValue (int ordinal)
269 throw new NotImplementedException ();
272 [MonoTODO]
273 public override int GetValues (object[] values)
275 throw new NotImplementedException ();
278 [MonoTODO]
279 protected bool IsCommandBehavior (CommandBehavior condition)
281 throw new NotImplementedException ();
284 [MonoTODO]
285 public override bool IsDBNull (int ordinal)
287 throw new NotImplementedException ();
290 [MonoTODO]
291 public override bool NextResult ()
293 throw new NotImplementedException ();
296 [MonoTODO]
297 public override bool Read ()
299 throw new NotImplementedException ();
302 #endregion // Methods
306 #endif