SqlResultSet.cs 13 KB

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