SqlResultSet.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. //
  2. // System.Data.SqlClient.SqlResultSet
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2003
  8. //
  9. //
  10. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  11. //
  12. // Permission is hereby granted, free of charge, to any person obtaining
  13. // a copy of this software and associated documentation files (the
  14. // "Software"), to deal in the Software without restriction, including
  15. // without limitation the rights to use, copy, modify, merge, publish,
  16. // distribute, sublicense, and/or sell copies of the Software, and to
  17. // permit persons to whom the Software is furnished to do so, subject to
  18. // the following conditions:
  19. //
  20. // The above copyright notice and this permission notice shall be
  21. // included in all copies or substantial portions of the Software.
  22. //
  23. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  24. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  25. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  26. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  27. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  28. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  29. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  30. //
  31. #if NET_2_0
  32. using System;
  33. using System.Collections;
  34. using System.Data;
  35. using System.Data.Sql;
  36. using System.Data.SqlTypes;
  37. namespace System.Data.SqlClient {
  38. public sealed class SqlResultSet : MarshalByRefObject, IEnumerable, ISqlResultSet, ISqlReader, ISqlRecord, ISqlGetTypedData, IGetTypedData, ISqlUpdatableRecord, ISqlSetTypedData, IDataReader, IDisposable, IDataUpdatableRecord, IDataRecord, ISetTypedData
  39. {
  40. #region Fields
  41. bool disposed;
  42. #endregion // Fields
  43. #region Properties
  44. public int Depth {
  45. get { throw new NotImplementedException (); }
  46. }
  47. public int FieldCount {
  48. get { throw new NotImplementedException (); }
  49. }
  50. public bool HasRows {
  51. get { throw new NotImplementedException (); }
  52. }
  53. public int HiddenFieldCount {
  54. get { throw new NotImplementedException (); }
  55. }
  56. object IDataRecord.this [int x] {
  57. get { return this [x]; }
  58. }
  59. object IDataRecord.this [string x] {
  60. get { return this [x]; }
  61. }
  62. public bool IsClosed {
  63. get { throw new NotImplementedException (); }
  64. }
  65. public object this [int index] {
  66. get { throw new NotImplementedException (); }
  67. set { throw new NotImplementedException (); }
  68. }
  69. public object this [string name] {
  70. get { throw new NotImplementedException (); }
  71. set { throw new NotImplementedException (); }
  72. }
  73. public int RecordsAffected {
  74. get { throw new NotImplementedException (); }
  75. }
  76. public bool Scrollable {
  77. get { throw new NotImplementedException (); }
  78. }
  79. public ResultSetSensitivity Sensitivity {
  80. get { throw new NotImplementedException (); }
  81. }
  82. public bool Updatable {
  83. get { throw new NotImplementedException (); }
  84. }
  85. #endregion // Properties
  86. #region Methods
  87. [MonoTODO]
  88. public void Close ()
  89. {
  90. throw new NotImplementedException ();
  91. }
  92. [MonoTODO]
  93. public ISqlUpdatableRecord CreateRecord ()
  94. {
  95. throw new NotImplementedException ();
  96. }
  97. [MonoTODO]
  98. public void Delete ()
  99. {
  100. throw new NotImplementedException ();
  101. }
  102. [MonoTODO]
  103. private void Dispose (bool disposing)
  104. {
  105. if (!disposed) {
  106. if (disposing) {
  107. Close ();
  108. }
  109. disposed = true;
  110. }
  111. }
  112. [MonoTODO]
  113. public bool GetBoolean (int i)
  114. {
  115. throw new NotImplementedException ();
  116. }
  117. [MonoTODO]
  118. public byte GetByte (int i)
  119. {
  120. throw new NotImplementedException ();
  121. }
  122. [MonoTODO]
  123. public long GetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length)
  124. {
  125. throw new NotImplementedException ();
  126. }
  127. [MonoTODO]
  128. public char GetChar (int i)
  129. {
  130. throw new NotImplementedException ();
  131. }
  132. [MonoTODO]
  133. public long GetChars (int i, long dataIndex, char[] buffer, int bufferIndex, int length)
  134. {
  135. throw new NotImplementedException ();
  136. }
  137. [MonoTODO]
  138. public IDataReader GetData (int i)
  139. {
  140. throw new NotImplementedException ();
  141. }
  142. [MonoTODO]
  143. public string GetDataTypeName (int i)
  144. {
  145. throw new NotImplementedException ();
  146. }
  147. [MonoTODO]
  148. public DateTime GetDateTime (int i)
  149. {
  150. throw new NotImplementedException ();
  151. }
  152. [MonoTODO]
  153. public decimal GetDecimal (int i)
  154. {
  155. throw new NotImplementedException ();
  156. }
  157. [MonoTODO]
  158. public double GetDouble (int i)
  159. {
  160. throw new NotImplementedException ();
  161. }
  162. [MonoTODO]
  163. public Type GetFieldType (int i)
  164. {
  165. throw new NotImplementedException ();
  166. }
  167. [MonoTODO]
  168. public float GetFloat (int i)
  169. {
  170. throw new NotImplementedException ();
  171. }
  172. [MonoTODO]
  173. public Guid GetGuid (int i)
  174. {
  175. throw new NotImplementedException ();
  176. }
  177. [MonoTODO]
  178. public short GetInt16 (int i)
  179. {
  180. throw new NotImplementedException ();
  181. }
  182. [MonoTODO]
  183. public int GetInt32 (int i)
  184. {
  185. throw new NotImplementedException ();
  186. }
  187. [MonoTODO]
  188. public long GetInt64 (int i)
  189. {
  190. throw new NotImplementedException ();
  191. }
  192. [MonoTODO]
  193. public string GetName (int i)
  194. {
  195. throw new NotImplementedException ();
  196. }
  197. [MonoTODO]
  198. public object GetObjectRef (int i)
  199. {
  200. throw new NotImplementedException ();
  201. }
  202. [MonoTODO]
  203. public int GetOrdinal (string name)
  204. {
  205. throw new NotImplementedException ();
  206. }
  207. [MonoTODO]
  208. public DataTable GetSchemaTable ()
  209. {
  210. throw new NotImplementedException ();
  211. }
  212. [MonoTODO]
  213. public SqlBinary GetSqlBinary (int i)
  214. {
  215. throw new NotImplementedException ();
  216. }
  217. [MonoTODO]
  218. public SqlBoolean GetSqlBoolean (int i)
  219. {
  220. throw new NotImplementedException ();
  221. }
  222. [MonoTODO]
  223. public SqlByte GetSqlByte (int i)
  224. {
  225. throw new NotImplementedException ();
  226. }
  227. [MonoTODO]
  228. public SqlBytes GetSqlBytes (int i)
  229. {
  230. throw new NotImplementedException ();
  231. }
  232. [MonoTODO]
  233. public SqlBytes GetSqlBytesRef (int i)
  234. {
  235. throw new NotImplementedException ();
  236. }
  237. [MonoTODO]
  238. public SqlChars GetSqlChars (int i)
  239. {
  240. throw new NotImplementedException ();
  241. }
  242. [MonoTODO]
  243. public SqlChars GetSqlCharsRef (int i)
  244. {
  245. throw new NotImplementedException ();
  246. }
  247. [MonoTODO]
  248. public SqlDate GetSqlDate (int i)
  249. {
  250. throw new NotImplementedException ();
  251. }
  252. [MonoTODO]
  253. public SqlDateTime GetSqlDateTime (int i)
  254. {
  255. throw new NotImplementedException ();
  256. }
  257. [MonoTODO]
  258. public SqlDecimal GetSqlDecimal (int i)
  259. {
  260. throw new NotImplementedException ();
  261. }
  262. [MonoTODO]
  263. public SqlDouble GetSqlDouble (int i)
  264. {
  265. throw new NotImplementedException ();
  266. }
  267. [MonoTODO]
  268. public SqlGuid GetSqlGuid (int i)
  269. {
  270. throw new NotImplementedException ();
  271. }
  272. [MonoTODO]
  273. public SqlInt16 GetSqlInt16 (int i)
  274. {
  275. throw new NotImplementedException ();
  276. }
  277. [MonoTODO]
  278. public SqlInt32 GetSqlInt32 (int i)
  279. {
  280. throw new NotImplementedException ();
  281. }
  282. [MonoTODO]
  283. public SqlInt64 GetSqlInt64 (int i)
  284. {
  285. throw new NotImplementedException ();
  286. }
  287. [MonoTODO]
  288. public SqlMetaData GetSqlMetaData (int i)
  289. {
  290. throw new NotImplementedException ();
  291. }
  292. [MonoTODO]
  293. public SqlMoney GetSqlMoney (int i)
  294. {
  295. throw new NotImplementedException ();
  296. }
  297. [MonoTODO]
  298. public SqlSingle GetSqlSingle (int i)
  299. {
  300. throw new NotImplementedException ();
  301. }
  302. [MonoTODO]
  303. public SqlString GetSqlString (int i)
  304. {
  305. throw new NotImplementedException ();
  306. }
  307. [MonoTODO]
  308. public SqlTime GetSqlTime (int i)
  309. {
  310. throw new NotImplementedException ();
  311. }
  312. [MonoTODO]
  313. public SqlUtcDateTime GetSqlUtcDateTime (int i)
  314. {
  315. throw new NotImplementedException ();
  316. }
  317. [MonoTODO]
  318. public object GetSqlValue (int i)
  319. {
  320. throw new NotImplementedException ();
  321. }
  322. [MonoTODO]
  323. public int GetSqlValues (object[] values)
  324. {
  325. throw new NotImplementedException ();
  326. }
  327. [MonoTODO]
  328. public SqlXmlReader GetSqlXmlReader (int i)
  329. {
  330. throw new NotImplementedException ();
  331. }
  332. [MonoTODO]
  333. public string GetString (int i)
  334. {
  335. throw new NotImplementedException ();
  336. }
  337. [MonoTODO]
  338. public object GetValue (int i)
  339. {
  340. throw new NotImplementedException ();
  341. }
  342. [MonoTODO]
  343. public int GetValues (object[] values)
  344. {
  345. throw new NotImplementedException ();
  346. }
  347. void IDisposable.Dispose ()
  348. {
  349. Dispose (true);
  350. GC.SuppressFinalize (this);
  351. }
  352. [MonoTODO]
  353. IEnumerator IEnumerable.GetEnumerator ()
  354. {
  355. throw new NotImplementedException ();
  356. }
  357. [MonoTODO]
  358. public void Insert (ISqlRecord record)
  359. {
  360. throw new NotImplementedException ();
  361. }
  362. [MonoTODO]
  363. public bool IsDBNull (int i)
  364. {
  365. throw new NotImplementedException ();
  366. }
  367. [MonoTODO]
  368. public bool IsSetAsDefault (int i)
  369. {
  370. throw new NotImplementedException ();
  371. }
  372. [MonoTODO]
  373. public bool NextResult ()
  374. {
  375. throw new NotImplementedException ();
  376. }
  377. [MonoTODO]
  378. public bool Read ()
  379. {
  380. throw new NotImplementedException ();
  381. }
  382. [MonoTODO]
  383. public bool ReadAbsolute (int position)
  384. {
  385. throw new NotImplementedException ();
  386. }
  387. [MonoTODO]
  388. public bool ReadFirst ()
  389. {
  390. throw new NotImplementedException ();
  391. }
  392. [MonoTODO]
  393. public bool ReadLast ()
  394. {
  395. throw new NotImplementedException ();
  396. }
  397. [MonoTODO]
  398. public bool ReadPrevious ()
  399. {
  400. throw new NotImplementedException ();
  401. }
  402. [MonoTODO]
  403. public bool ReadRelative (int position)
  404. {
  405. throw new NotImplementedException ();
  406. }
  407. [MonoTODO]
  408. public void SetBoolean (int i, bool value)
  409. {
  410. throw new NotImplementedException ();
  411. }
  412. [MonoTODO]
  413. public void SetByte (int i, byte value)
  414. {
  415. throw new NotImplementedException ();
  416. }
  417. [MonoTODO]
  418. public void SetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length)
  419. {
  420. throw new NotImplementedException ();
  421. }
  422. [MonoTODO]
  423. public void SetChar (int i, char value)
  424. {
  425. throw new NotImplementedException ();
  426. }
  427. [MonoTODO]
  428. public void SetChars (int i, long dataIndex, char[] buffer, int bufferIndex, int length)
  429. {
  430. throw new NotImplementedException ();
  431. }
  432. [MonoTODO]
  433. public void SetDateTime (int i, DateTime value)
  434. {
  435. throw new NotImplementedException ();
  436. }
  437. [MonoTODO]
  438. public void SetDecimal (int i, decimal value)
  439. {
  440. throw new NotImplementedException ();
  441. }
  442. [MonoTODO]
  443. public void SetDefault (int i)
  444. {
  445. throw new NotImplementedException ();
  446. }
  447. [MonoTODO]
  448. public void SetDouble (int i, double value)
  449. {
  450. throw new NotImplementedException ();
  451. }
  452. [MonoTODO]
  453. public void SetFloat (int i, float value)
  454. {
  455. throw new NotImplementedException ();
  456. }
  457. [MonoTODO]
  458. public void SetGuid (int i, Guid value)
  459. {
  460. throw new NotImplementedException ();
  461. }
  462. [MonoTODO]
  463. public void SetInt16 (int i, short value)
  464. {
  465. throw new NotImplementedException ();
  466. }
  467. [MonoTODO]
  468. public void SetInt32 (int i, int value)
  469. {
  470. throw new NotImplementedException ();
  471. }
  472. [MonoTODO]
  473. public void SetInt64 (int i, long value)
  474. {
  475. throw new NotImplementedException ();
  476. }
  477. [MonoTODO]
  478. public void SetObjectRef (int i, object buffer)
  479. {
  480. throw new NotImplementedException ();
  481. }
  482. [MonoTODO]
  483. public void SetSqlBinary (int i, SqlBinary value)
  484. {
  485. throw new NotImplementedException ();
  486. }
  487. [MonoTODO]
  488. public void SetSqlBoolean (int i, SqlBoolean value)
  489. {
  490. throw new NotImplementedException ();
  491. }
  492. [MonoTODO]
  493. public void SetSqlByte (int i, SqlByte value)
  494. {
  495. throw new NotImplementedException ();
  496. }
  497. [MonoTODO]
  498. public void SetSqlBytes (int i, SqlBytes value)
  499. {
  500. throw new NotImplementedException ();
  501. }
  502. [MonoTODO]
  503. public void SetSqlBytesRef (int i, SqlBytes value)
  504. {
  505. throw new NotImplementedException ();
  506. }
  507. [MonoTODO]
  508. public void SetSqlChars (int i, SqlChars value)
  509. {
  510. throw new NotImplementedException ();
  511. }
  512. [MonoTODO]
  513. public void SetSqlCharsRef (int i, SqlChars value)
  514. {
  515. throw new NotImplementedException ();
  516. }
  517. [MonoTODO]
  518. public void SetSqlDate (int i, SqlDate value)
  519. {
  520. throw new NotImplementedException ();
  521. }
  522. [MonoTODO]
  523. public void SetSqlDateTime (int i, SqlDateTime value)
  524. {
  525. throw new NotImplementedException ();
  526. }
  527. [MonoTODO]
  528. public void SetSqlDecimal (int i, SqlDecimal value)
  529. {
  530. throw new NotImplementedException ();
  531. }
  532. [MonoTODO]
  533. public void SetSqlDouble (int i, SqlDouble value)
  534. {
  535. throw new NotImplementedException ();
  536. }
  537. [MonoTODO]
  538. public void SetSqlGuid (int i, SqlGuid value)
  539. {
  540. throw new NotImplementedException ();
  541. }
  542. [MonoTODO]
  543. public void SetSqlInt16 (int i, SqlInt16 value)
  544. {
  545. throw new NotImplementedException ();
  546. }
  547. [MonoTODO]
  548. public void SetSqlInt32 (int i, SqlInt32 value)
  549. {
  550. throw new NotImplementedException ();
  551. }
  552. [MonoTODO]
  553. public void SetSqlInt64 (int i, SqlInt64 value)
  554. {
  555. throw new NotImplementedException ();
  556. }
  557. [MonoTODO]
  558. public void SetSqlMoney (int i, SqlMoney value)
  559. {
  560. throw new NotImplementedException ();
  561. }
  562. [MonoTODO]
  563. public void SetSqlSingle (int i, SqlSingle value)
  564. {
  565. throw new NotImplementedException ();
  566. }
  567. [MonoTODO]
  568. public void SetSqlString (int i, SqlString value)
  569. {
  570. throw new NotImplementedException ();
  571. }
  572. [MonoTODO]
  573. public void SetSqlTime (int i, SqlTime value)
  574. {
  575. throw new NotImplementedException ();
  576. }
  577. [MonoTODO]
  578. public void SetSqlUtcDateTime (int i, SqlUtcDateTime value)
  579. {
  580. throw new NotImplementedException ();
  581. }
  582. [MonoTODO]
  583. public void SetSqlXmlReader (int i, SqlXmlReader value)
  584. {
  585. throw new NotImplementedException ();
  586. }
  587. [MonoTODO]
  588. public void SetString (int i, string value)
  589. {
  590. throw new NotImplementedException ();
  591. }
  592. [MonoTODO]
  593. public void SetValue (int i, object value)
  594. {
  595. throw new NotImplementedException ();
  596. }
  597. [MonoTODO]
  598. public int SetValues (object[] value)
  599. {
  600. throw new NotImplementedException ();
  601. }
  602. [MonoTODO]
  603. public void Update ()
  604. {
  605. throw new NotImplementedException ();
  606. }
  607. #endregion // Methods
  608. }
  609. }
  610. #endif