DbCommandBuilder.cs 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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 ConflictOptions ConflictDetection {
  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. protected abstract DbProviderFactory ProviderFactory { get; }
  65. [MonoTODO]
  66. public virtual string QuotePrefix {
  67. get { throw new NotImplementedException (); }
  68. set { throw new NotImplementedException (); }
  69. }
  70. [MonoTODO]
  71. public virtual string QuoteSuffix {
  72. get { throw new NotImplementedException (); }
  73. set { throw new NotImplementedException (); }
  74. }
  75. [MonoTODO]
  76. public SchemaLocation SchemaLocation {
  77. get { throw new NotImplementedException (); }
  78. set { throw new NotImplementedException (); }
  79. }
  80. [MonoTODO]
  81. public virtual string SchemaSeparator {
  82. get { throw new NotImplementedException (); }
  83. set { throw new NotImplementedException (); }
  84. }
  85. #endregion // Properties
  86. #region Methods
  87. protected abstract void ApplyParameterInfo (IDbDataParameter p, DataRow row);
  88. [MonoTODO]
  89. protected virtual void BuildCache (bool closeConnection, DataRow dataRow)
  90. {
  91. throw new NotImplementedException ();
  92. }
  93. [MonoTODO]
  94. protected override void Dispose (bool disposing)
  95. {
  96. throw new NotImplementedException ();
  97. }
  98. [MonoTODO]
  99. public static Delegate FindBUilder (MulticastDelegate mcd)
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. [MonoTODO]
  104. public virtual string FormatLiteral (DbConnection connection, string dataTypeName, object value)
  105. {
  106. throw new NotImplementedException ();
  107. }
  108. [MonoTODO]
  109. public DbCommand GetDeleteCommand ()
  110. {
  111. throw new NotImplementedException ();
  112. }
  113. [MonoTODO]
  114. public DbCommand GetDeleteCommand (DataRow dataRow)
  115. {
  116. throw new NotImplementedException ();
  117. }
  118. [MonoTODO]
  119. public DbCommand GetInsertCommand ()
  120. {
  121. throw new NotImplementedException ();
  122. }
  123. [MonoTODO]
  124. public DbCommand GetInsertCommand (DataRow dataRow)
  125. {
  126. throw new NotImplementedException ();
  127. }
  128. protected abstract string GetParameterName (int parameterOrdinal);
  129. protected abstract string GetParameterPlaceholder (int parameterOrdinal);
  130. [MonoTODO]
  131. protected DbCommand GetSelectCommand ()
  132. {
  133. throw new NotImplementedException ();
  134. }
  135. [MonoTODO]
  136. public DbCommand GetUpdateCommand ()
  137. {
  138. throw new NotImplementedException ();
  139. }
  140. [MonoTODO]
  141. public DbCommand GetUpdateCommand (DataRow dataRow)
  142. {
  143. throw new NotImplementedException ();
  144. }
  145. [MonoTODO]
  146. protected virtual DbCommand InitializeCommand (DbCommand command)
  147. {
  148. throw new NotImplementedException ();
  149. }
  150. [MonoTODO]
  151. protected internal static string[] ParseProcedureName (string procedure)
  152. {
  153. throw new NotImplementedException ();
  154. }
  155. [MonoTODO]
  156. public virtual string QuoteIdentifier (string unquotedIdentifier)
  157. {
  158. throw new NotImplementedException ();
  159. }
  160. [MonoTODO]
  161. public virtual void RefreshSchema ()
  162. {
  163. throw new NotImplementedException ();
  164. }
  165. [MonoTODO]
  166. public virtual void ResolveObjectName (DbConnection connection, string objectType, string[] identifierParts)
  167. {
  168. throw new NotImplementedException ();
  169. }
  170. [MonoTODO]
  171. protected void RowUpdatingHandler (object sender, RowUpdatingEventArgs rowUpdatingEvent)
  172. {
  173. throw new NotImplementedException ();
  174. }
  175. protected abstract void SetRowUpdatingHandler (DbDataAdapter adapter);
  176. [MonoTODO]
  177. public virtual object UnformatLiteral (DbConnection connection, string dataTypeName, string literalValue)
  178. {
  179. throw new NotImplementedException ();
  180. }
  181. [MonoTODO]
  182. public virtual string UnquoteIdentifier (string quotedIdentifier)
  183. {
  184. throw new NotImplementedException ();
  185. }
  186. #endregion // Methods
  187. }
  188. }
  189. #endif