2 // System.Data.ProviderBase.DbDataReaderBase
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2003
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:
21 // The above copyright notice and this permission notice shall be
22 // included in all copies or substantial portions of the Software.
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.
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
44 CommandBehavior behavior
;
50 protected DbDataReaderBase (CommandBehavior behavior
)
52 this.behavior
= behavior
;
55 #endregion // Constructors
59 protected CommandBehavior CommandBehavior
{
60 get { return behavior; }
64 public override int Depth
{
65 get { throw new NotImplementedException (); }
69 public override int FieldCount
{
70 get { throw new NotImplementedException (); }
74 public override bool HasRows
{
75 get { throw new NotImplementedException (); }
79 public override bool IsClosed
{
80 get { throw new NotImplementedException (); }
83 protected abstract bool IsValidRow { get; }
86 public override object this [[Optional
] int index
] {
87 get { throw new NotImplementedException (); }
91 public override object this [[Optional
] string columnName
] {
92 get { throw new NotImplementedException (); }
96 public override int RecordsAffected
{
97 get { throw new NotImplementedException (); }
100 #endregion // Properties
105 protected void AssertReaderHasColumns ()
107 throw new NotImplementedException ();
111 protected void AssertReaderHasData ()
113 throw new NotImplementedException ();
117 protected void AssertReaderIsOpen (string methodName
)
119 throw new NotImplementedException ();
123 public override void Close ()
125 throw new NotImplementedException ();
129 protected static DataTable
CreateSchemaTable ()
131 throw new NotImplementedException ();
135 public override void Dispose ()
137 throw new NotImplementedException ();
141 protected virtual void FillSchemaTable (DataTable dataTable
)
143 throw new NotImplementedException ();
147 public override bool GetBoolean (int ordinal
)
149 throw new NotImplementedException ();
153 public override byte GetByte (int ordinal
)
155 throw new NotImplementedException ();
159 public override long GetBytes (int ordinal
, long fieldoffset
, byte[] buffer
, int bufferoffset
, int length
)
161 throw new NotImplementedException ();
165 public override char GetChar (int ordinal
)
167 throw new NotImplementedException ();
171 public override long GetChars (int ordinal
, long fieldoffset
, char[] buffer
, int bufferoffset
, int length
)
173 throw new NotImplementedException ();
177 public override string GetDataTypeName (int ordinal
)
179 throw new NotImplementedException ();
183 public override DateTime
GetDateTime (int ordinal
)
185 throw new NotImplementedException ();
189 public override decimal GetDecimal (int ordinal
)
191 throw new NotImplementedException ();
195 public override double GetDouble (int ordinal
)
197 throw new NotImplementedException ();
201 public override IEnumerator
GetEnumerator ()
203 throw new NotImplementedException ();
207 public override Type
GetFieldType (int ordinal
)
209 throw new NotImplementedException ();
213 public override float GetFloat (int ordinal
)
215 throw new NotImplementedException ();
219 public override Guid
GetGuid (int ordinal
)
221 throw new NotImplementedException ();
225 public override short GetInt16 (int ordinal
)
227 throw new NotImplementedException ();
231 public override int GetInt32 (int ordinal
)
233 throw new NotImplementedException ();
237 public override long GetInt64 (int ordinal
)
239 throw new NotImplementedException ();
243 public override string GetName (int ordinal
)
245 throw new NotImplementedException ();
249 public override int GetOrdinal (string name
)
251 throw new NotImplementedException ();
255 public override DataTable
GetSchemaTable ()
257 throw new NotImplementedException ();
261 public override string GetString (int ordinal
)
263 throw new NotImplementedException ();
267 public override object GetValue (int ordinal
)
269 throw new NotImplementedException ();
273 public override int GetValues (object[] values
)
275 throw new NotImplementedException ();
279 protected bool IsCommandBehavior (CommandBehavior condition
)
281 throw new NotImplementedException ();
285 public override bool IsDBNull (int ordinal
)
287 throw new NotImplementedException ();
291 public override bool NextResult ()
293 throw new NotImplementedException ();
297 public override bool Read ()
299 throw new NotImplementedException ();
302 #endregion // Methods