DbCommandBuilder.cs 6.3 KB

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