**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Data / System.Data.SqlClient / SqlResultSet.cs
blobc156c61a2f2b056d22be565c3ec6b3a9dc2b7b68
1 //
2 // System.Data.SqlClient.SqlResultSet
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;
36 using System.Collections;
37 using System.Data;
38 using System.Data.Sql;
39 using System.Data.SqlTypes;
41 namespace System.Data.SqlClient {
42 public sealed class SqlResultSet : MarshalByRefObject, IEnumerable, ISqlResultSet, ISqlReader, ISqlRecord, ISqlGetTypedData, IGetTypedData, ISqlUpdatableRecord, ISqlSetTypedData, IDataReader, IDisposable, IDataUpdatableRecord, IDataRecord, ISetTypedData
44 #region Fields
46 bool disposed;
48 #endregion // Fields
50 #region Properties
52 public int Depth {
53 get { throw new NotImplementedException (); }
56 public int FieldCount {
57 get { throw new NotImplementedException (); }
60 public bool HasRows {
61 get { throw new NotImplementedException (); }
64 public int HiddenFieldCount {
65 get { throw new NotImplementedException (); }
68 object IDataRecord.this [int x] {
69 get { return this [x]; }
72 object IDataRecord.this [string x] {
73 get { return this [x]; }
76 public bool IsClosed {
77 get { throw new NotImplementedException (); }
80 public object this [int index] {
81 get { throw new NotImplementedException (); }
82 set { throw new NotImplementedException (); }
85 public object this [string name] {
86 get { throw new NotImplementedException (); }
87 set { throw new NotImplementedException (); }
90 public int RecordsAffected {
91 get { throw new NotImplementedException (); }
94 public bool Scrollable {
95 get { throw new NotImplementedException (); }
98 public ResultSetSensitivity Sensitivity {
99 get { throw new NotImplementedException (); }
102 public bool Updatable {
103 get { throw new NotImplementedException (); }
106 #endregion // Properties
108 #region Methods
110 [MonoTODO]
111 public void Close ()
113 throw new NotImplementedException ();
116 [MonoTODO]
117 public ISqlUpdatableRecord CreateRecord ()
119 throw new NotImplementedException ();
122 [MonoTODO]
123 public void Delete ()
125 throw new NotImplementedException ();
128 [MonoTODO]
129 private void Dispose (bool disposing)
131 if (!disposed) {
132 if (disposing) {
133 Close ();
135 disposed = true;
139 [MonoTODO]
140 public bool GetBoolean (int i)
142 throw new NotImplementedException ();
145 [MonoTODO]
146 public byte GetByte (int i)
148 throw new NotImplementedException ();
151 [MonoTODO]
152 public long GetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length)
154 throw new NotImplementedException ();
157 [MonoTODO]
158 public char GetChar (int i)
160 throw new NotImplementedException ();
163 [MonoTODO]
164 public long GetChars (int i, long dataIndex, char[] buffer, int bufferIndex, int length)
166 throw new NotImplementedException ();
169 [MonoTODO]
170 public IDataReader GetData (int i)
172 throw new NotImplementedException ();
175 [MonoTODO]
176 public string GetDataTypeName (int i)
178 throw new NotImplementedException ();
181 [MonoTODO]
182 public DateTime GetDateTime (int i)
184 throw new NotImplementedException ();
187 [MonoTODO]
188 public decimal GetDecimal (int i)
190 throw new NotImplementedException ();
193 [MonoTODO]
194 public double GetDouble (int i)
196 throw new NotImplementedException ();
199 [MonoTODO]
200 public Type GetFieldType (int i)
202 throw new NotImplementedException ();
205 [MonoTODO]
206 public float GetFloat (int i)
208 throw new NotImplementedException ();
211 [MonoTODO]
212 public Guid GetGuid (int i)
214 throw new NotImplementedException ();
217 [MonoTODO]
218 public short GetInt16 (int i)
220 throw new NotImplementedException ();
223 [MonoTODO]
224 public int GetInt32 (int i)
226 throw new NotImplementedException ();
229 [MonoTODO]
230 public long GetInt64 (int i)
232 throw new NotImplementedException ();
235 [MonoTODO]
236 public string GetName (int i)
238 throw new NotImplementedException ();
241 [MonoTODO]
242 public object GetObjectRef (int i)
244 throw new NotImplementedException ();
247 [MonoTODO]
248 public int GetOrdinal (string name)
250 throw new NotImplementedException ();
253 [MonoTODO]
254 public DataTable GetSchemaTable ()
256 throw new NotImplementedException ();
259 [MonoTODO]
260 public SqlBinary GetSqlBinary (int i)
262 throw new NotImplementedException ();
265 [MonoTODO]
266 public SqlBoolean GetSqlBoolean (int i)
268 throw new NotImplementedException ();
271 [MonoTODO]
272 public SqlByte GetSqlByte (int i)
274 throw new NotImplementedException ();
277 [MonoTODO]
278 public SqlBytes GetSqlBytes (int i)
280 throw new NotImplementedException ();
283 [MonoTODO]
284 public SqlBytes GetSqlBytesRef (int i)
286 throw new NotImplementedException ();
289 [MonoTODO]
290 public SqlChars GetSqlChars (int i)
292 throw new NotImplementedException ();
295 [MonoTODO]
296 public SqlChars GetSqlCharsRef (int i)
298 throw new NotImplementedException ();
301 [MonoTODO]
302 public SqlDate GetSqlDate (int i)
304 throw new NotImplementedException ();
307 [MonoTODO]
308 public SqlDateTime GetSqlDateTime (int i)
310 throw new NotImplementedException ();
313 [MonoTODO]
314 public SqlDecimal GetSqlDecimal (int i)
316 throw new NotImplementedException ();
319 [MonoTODO]
320 public SqlDouble GetSqlDouble (int i)
322 throw new NotImplementedException ();
325 [MonoTODO]
326 public SqlGuid GetSqlGuid (int i)
328 throw new NotImplementedException ();
331 [MonoTODO]
332 public SqlInt16 GetSqlInt16 (int i)
334 throw new NotImplementedException ();
337 [MonoTODO]
338 public SqlInt32 GetSqlInt32 (int i)
340 throw new NotImplementedException ();
343 [MonoTODO]
344 public SqlInt64 GetSqlInt64 (int i)
346 throw new NotImplementedException ();
349 [MonoTODO]
350 public SqlMetaData GetSqlMetaData (int i)
352 throw new NotImplementedException ();
355 [MonoTODO]
356 public SqlMoney GetSqlMoney (int i)
358 throw new NotImplementedException ();
361 [MonoTODO]
362 public SqlSingle GetSqlSingle (int i)
364 throw new NotImplementedException ();
367 [MonoTODO]
368 public SqlString GetSqlString (int i)
370 throw new NotImplementedException ();
373 [MonoTODO]
374 public SqlTime GetSqlTime (int i)
376 throw new NotImplementedException ();
379 [MonoTODO]
380 public SqlUtcDateTime GetSqlUtcDateTime (int i)
382 throw new NotImplementedException ();
385 [MonoTODO]
386 public object GetSqlValue (int i)
388 throw new NotImplementedException ();
391 [MonoTODO]
392 public int GetSqlValues (object[] values)
394 throw new NotImplementedException ();
397 [MonoTODO]
398 public SqlXmlReader GetSqlXmlReader (int i)
400 throw new NotImplementedException ();
403 [MonoTODO]
404 public string GetString (int i)
406 throw new NotImplementedException ();
409 [MonoTODO]
410 public object GetValue (int i)
412 throw new NotImplementedException ();
415 [MonoTODO]
416 public int GetValues (object[] values)
418 throw new NotImplementedException ();
421 void IDisposable.Dispose ()
423 Dispose (true);
424 GC.SuppressFinalize (this);
427 [MonoTODO]
428 IEnumerator IEnumerable.GetEnumerator ()
430 throw new NotImplementedException ();
433 [MonoTODO]
434 public void Insert (ISqlRecord record)
436 throw new NotImplementedException ();
439 [MonoTODO]
440 public bool IsDBNull (int i)
442 throw new NotImplementedException ();
445 [MonoTODO]
446 public bool IsSetAsDefault (int i)
448 throw new NotImplementedException ();
451 [MonoTODO]
452 public bool NextResult ()
454 throw new NotImplementedException ();
457 [MonoTODO]
458 public bool Read ()
460 throw new NotImplementedException ();
463 [MonoTODO]
464 public bool ReadAbsolute (int position)
466 throw new NotImplementedException ();
469 [MonoTODO]
470 public bool ReadFirst ()
472 throw new NotImplementedException ();
475 [MonoTODO]
476 public bool ReadLast ()
478 throw new NotImplementedException ();
481 [MonoTODO]
482 public bool ReadPrevious ()
484 throw new NotImplementedException ();
487 [MonoTODO]
488 public bool ReadRelative (int position)
490 throw new NotImplementedException ();
493 [MonoTODO]
494 public void SetBoolean (int i, bool value)
496 throw new NotImplementedException ();
499 [MonoTODO]
500 public void SetByte (int i, byte value)
502 throw new NotImplementedException ();
505 [MonoTODO]
506 public void SetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length)
508 throw new NotImplementedException ();
511 [MonoTODO]
512 public void SetChar (int i, char value)
514 throw new NotImplementedException ();
517 [MonoTODO]
518 public void SetChars (int i, long dataIndex, char[] buffer, int bufferIndex, int length)
520 throw new NotImplementedException ();
523 [MonoTODO]
524 public void SetDateTime (int i, DateTime value)
526 throw new NotImplementedException ();
529 [MonoTODO]
530 public void SetDecimal (int i, decimal value)
532 throw new NotImplementedException ();
535 [MonoTODO]
536 public void SetDefault (int i)
538 throw new NotImplementedException ();
541 [MonoTODO]
542 public void SetDouble (int i, double value)
544 throw new NotImplementedException ();
547 [MonoTODO]
548 public void SetFloat (int i, float value)
550 throw new NotImplementedException ();
553 [MonoTODO]
554 public void SetGuid (int i, Guid value)
556 throw new NotImplementedException ();
559 [MonoTODO]
560 public void SetInt16 (int i, short value)
562 throw new NotImplementedException ();
565 [MonoTODO]
566 public void SetInt32 (int i, int value)
568 throw new NotImplementedException ();
571 [MonoTODO]
572 public void SetInt64 (int i, long value)
574 throw new NotImplementedException ();
577 [MonoTODO]
578 public void SetObjectRef (int i, object buffer)
580 throw new NotImplementedException ();
583 [MonoTODO]
584 public void SetSqlBinary (int i, SqlBinary value)
586 throw new NotImplementedException ();
589 [MonoTODO]
590 public void SetSqlBoolean (int i, SqlBoolean value)
592 throw new NotImplementedException ();
595 [MonoTODO]
596 public void SetSqlByte (int i, SqlByte value)
598 throw new NotImplementedException ();
601 [MonoTODO]
602 public void SetSqlBytes (int i, SqlBytes value)
604 throw new NotImplementedException ();
607 [MonoTODO]
608 public void SetSqlBytesRef (int i, SqlBytes value)
610 throw new NotImplementedException ();
613 [MonoTODO]
614 public void SetSqlChars (int i, SqlChars value)
616 throw new NotImplementedException ();
619 [MonoTODO]
620 public void SetSqlCharsRef (int i, SqlChars value)
622 throw new NotImplementedException ();
625 [MonoTODO]
626 public void SetSqlDate (int i, SqlDate value)
628 throw new NotImplementedException ();
631 [MonoTODO]
632 public void SetSqlDateTime (int i, SqlDateTime value)
634 throw new NotImplementedException ();
637 [MonoTODO]
638 public void SetSqlDecimal (int i, SqlDecimal value)
640 throw new NotImplementedException ();
643 [MonoTODO]
644 public void SetSqlDouble (int i, SqlDouble value)
646 throw new NotImplementedException ();
649 [MonoTODO]
650 public void SetSqlGuid (int i, SqlGuid value)
652 throw new NotImplementedException ();
655 [MonoTODO]
656 public void SetSqlInt16 (int i, SqlInt16 value)
658 throw new NotImplementedException ();
661 [MonoTODO]
662 public void SetSqlInt32 (int i, SqlInt32 value)
664 throw new NotImplementedException ();
667 [MonoTODO]
668 public void SetSqlInt64 (int i, SqlInt64 value)
670 throw new NotImplementedException ();
673 [MonoTODO]
674 public void SetSqlMoney (int i, SqlMoney value)
676 throw new NotImplementedException ();
679 [MonoTODO]
680 public void SetSqlSingle (int i, SqlSingle value)
682 throw new NotImplementedException ();
685 [MonoTODO]
686 public void SetSqlString (int i, SqlString value)
688 throw new NotImplementedException ();
691 [MonoTODO]
692 public void SetSqlTime (int i, SqlTime value)
694 throw new NotImplementedException ();
697 [MonoTODO]
698 public void SetSqlUtcDateTime (int i, SqlUtcDateTime value)
700 throw new NotImplementedException ();
703 [MonoTODO]
704 public void SetSqlXmlReader (int i, SqlXmlReader value)
706 throw new NotImplementedException ();
709 [MonoTODO]
710 public void SetString (int i, string value)
712 throw new NotImplementedException ();
715 [MonoTODO]
716 public void SetValue (int i, object value)
718 throw new NotImplementedException ();
721 [MonoTODO]
722 public int SetValues (object[] value)
724 throw new NotImplementedException ();
727 [MonoTODO]
728 public void Update ()
730 throw new NotImplementedException ();
734 #endregion // Methods
738 #endif