DbCommandBuilder.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. //
  2. // System.Data.Common.DbCommandBuilder
  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 || TARGET_JVM
  32. using System.ComponentModel;
  33. using System.Data;
  34. namespace System.Data.Common {
  35. public abstract class DbCommandBuilder : Component
  36. {
  37. #region Constructors
  38. [MonoTODO]
  39. protected DbCommandBuilder ()
  40. {
  41. }
  42. #endregion // Constructors
  43. #region Properties
  44. [MonoTODO]
  45. public virtual CatalogLocation CatalogLocation {
  46. get { throw new NotImplementedException (); }
  47. set { throw new NotImplementedException (); }
  48. }
  49. [MonoTODO]
  50. public virtual string CatalogSeparator {
  51. get { throw new NotImplementedException (); }
  52. set { throw new NotImplementedException (); }
  53. }
  54. [MonoTODO]
  55. public virtual ConflictOption ConflictOption {
  56. get { throw new NotImplementedException (); }
  57. set { throw new NotImplementedException (); }
  58. }
  59. [MonoTODO]
  60. public DbDataAdapter DataAdapter {
  61. get { throw new NotImplementedException (); }
  62. set { throw new NotImplementedException (); }
  63. }
  64. [MonoTODO]
  65. public virtual string QuotePrefix {
  66. get { throw new NotImplementedException (); }
  67. set { throw new NotImplementedException (); }
  68. }
  69. [MonoTODO]
  70. public virtual string QuoteSuffix {
  71. get { throw new NotImplementedException (); }
  72. set { throw new NotImplementedException (); }
  73. }
  74. [MonoTODO]
  75. public SchemaLocation SchemaLocation {
  76. get { throw new NotImplementedException (); }
  77. set { throw new NotImplementedException (); }
  78. }
  79. [MonoTODO]
  80. public virtual string SchemaSeparator {
  81. get { throw new NotImplementedException (); }
  82. set { throw new NotImplementedException (); }
  83. }
  84. #endregion // Properties
  85. #region Methods
  86. protected abstract void ApplyParameterInfo (DbParameter parameter,
  87. DataRow row,
  88. StatementType statementType,
  89. bool whereClause);
  90. [MonoTODO]
  91. protected virtual void BuildCache (bool closeConnection, DataRow dataRow)
  92. {
  93. throw new NotImplementedException ();
  94. }
  95. [MonoTODO]
  96. protected override void Dispose (bool disposing)
  97. {
  98. throw new NotImplementedException ();
  99. }
  100. [MonoTODO]
  101. public static Delegate FindBUilder (MulticastDelegate mcd)
  102. {
  103. throw new NotImplementedException ();
  104. }
  105. [MonoTODO]
  106. public virtual string FormatLiteral (DbConnection connection, string dataTypeName, object value)
  107. {
  108. throw new NotImplementedException ();
  109. }
  110. [MonoTODO]
  111. public DbCommand GetDeleteCommand ()
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. [MonoTODO]
  116. public DbCommand GetDeleteCommand (bool option)
  117. {
  118. throw new NotImplementedException ();
  119. }
  120. [MonoTODO]
  121. public DbCommand GetDeleteCommand (DataRow dataRow)
  122. {
  123. throw new NotImplementedException ();
  124. }
  125. [MonoTODO]
  126. public DbCommand GetInsertCommand ()
  127. {
  128. throw new NotImplementedException ();
  129. }
  130. [MonoTODO]
  131. public DbCommand GetInsertCommand (bool option)
  132. {
  133. throw new NotImplementedException ();
  134. }
  135. [MonoTODO]
  136. public DbCommand GetInsertCommand (DataRow dataRow)
  137. {
  138. throw new NotImplementedException ();
  139. }
  140. protected abstract string GetParameterName (int parameterOrdinal);
  141. protected abstract string GetParameterName (String parameterName);
  142. protected abstract string GetParameterPlaceholder (int parameterOrdinal);
  143. [MonoTODO]
  144. protected DbCommand GetSelectCommand ()
  145. {
  146. throw new NotImplementedException ();
  147. }
  148. [MonoTODO]
  149. public DbCommand GetUpdateCommand ()
  150. {
  151. throw new NotImplementedException ();
  152. }
  153. [MonoTODO]
  154. public DbCommand GetUpdateCommand (bool option)
  155. {
  156. throw new NotImplementedException ();
  157. }
  158. [MonoTODO]
  159. public DbCommand GetUpdateCommand (DataRow dataRow)
  160. {
  161. throw new NotImplementedException ();
  162. }
  163. [MonoTODO]
  164. protected virtual DbCommand InitializeCommand (DbCommand command)
  165. {
  166. throw new NotImplementedException ();
  167. }
  168. [MonoTODO]
  169. protected internal static string[] ParseProcedureName (string procedure)
  170. {
  171. throw new NotImplementedException ();
  172. }
  173. [MonoTODO]
  174. public virtual string QuoteIdentifier (string unquotedIdentifier)
  175. {
  176. throw new NotImplementedException ();
  177. }
  178. [MonoTODO]
  179. public virtual void RefreshSchema ()
  180. {
  181. throw new NotImplementedException ();
  182. }
  183. [MonoTODO]
  184. public virtual void ResolveObjectName (DbConnection connection, string objectType, string[] identifierParts)
  185. {
  186. throw new NotImplementedException ();
  187. }
  188. [MonoTODO]
  189. protected void RowUpdatingHandler (RowUpdatingEventArgs rowUpdatingEvent)
  190. {
  191. throw new NotImplementedException ();
  192. }
  193. [MonoTODO]
  194. protected void RowUpdatingHandler (object sender, RowUpdatingEventArgs rowUpdatingEvent)
  195. {
  196. throw new NotImplementedException ();
  197. }
  198. protected abstract void SetRowUpdatingHandler (DbDataAdapter adapter);
  199. [MonoTODO]
  200. public virtual object UnformatLiteral (DbConnection connection, string dataTypeName, string literalValue)
  201. {
  202. throw new NotImplementedException ();
  203. }
  204. [MonoTODO]
  205. public virtual string UnquoteIdentifier (string quotedIdentifier)
  206. {
  207. throw new NotImplementedException ();
  208. }
  209. #endregion // Methods
  210. }
  211. }
  212. #endif