2
0

OracleCommandBuilder.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. //
  2. // System.Data.OracleClient.OracleCommandBuilder
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. // Tim Coleman ([email protected])
  7. // Konstantin Triger <[email protected]>
  8. // Boris Kirzner <[email protected]>
  9. //
  10. // Copyright (C) Rodrigo Moya, 2002
  11. // Copyright (C) Tim Coleman, 2002
  12. // (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
  13. //
  14. //
  15. // Permission is hereby granted, free of charge, to any person obtaining
  16. // a copy of this software and associated documentation files (the
  17. // "Software"), to deal in the Software without restriction, including
  18. // without limitation the rights to use, copy, modify, merge, publish,
  19. // distribute, sublicense, and/or sell copies of the Software, and to
  20. // permit persons to whom the Software is furnished to do so, subject to
  21. // the following conditions:
  22. //
  23. // The above copyright notice and this permission notice shall be
  24. // included in all copies or substantial portions of the Software.
  25. //
  26. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  27. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  28. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  29. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  30. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  31. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  32. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  33. //
  34. using System;
  35. using System.ComponentModel;
  36. using System.Data;
  37. using System.Data.Common;
  38. using System.Data.ProviderBase;
  39. namespace System.Data.OracleClient {
  40. /// <summary>
  41. /// Provides a means of automatically generating single-table commands used to reconcile changes made to a DataSet with the associated database. This class cannot be inherited.
  42. /// </summary>
  43. public sealed class OracleCommandBuilder : AbstractDbCommandBuilder {
  44. #region Fields
  45. OracleDataAdapter adapter;
  46. string quotePrefix;
  47. string quoteSuffix;
  48. #endregion // Fields
  49. #region Constructors
  50. public OracleCommandBuilder () {
  51. adapter = null;
  52. quotePrefix = String.Empty;
  53. quoteSuffix = String.Empty;
  54. }
  55. public OracleCommandBuilder (OracleDataAdapter adapter)
  56. : this () {
  57. this.adapter = adapter;
  58. }
  59. #endregion // Constructors
  60. #region Properties
  61. public OracleDataAdapter DataAdapter {
  62. get {
  63. return adapter;
  64. }
  65. set {
  66. adapter = value;
  67. }
  68. }
  69. public string QuotePrefix {
  70. get {
  71. return quotePrefix;
  72. }
  73. set {
  74. quotePrefix = value;
  75. }
  76. }
  77. public string QuoteSuffix {
  78. get {
  79. return quoteSuffix;
  80. }
  81. set {
  82. quoteSuffix = value;
  83. }
  84. }
  85. #endregion // Properties
  86. #region Methods
  87. public static void DeriveParameters (OracleCommand command) {
  88. DeriveParameters((AbstractDbCommand)command);
  89. }
  90. [MonoTODO]
  91. protected override void Dispose (bool disposing) {
  92. throw new NotImplementedException ();
  93. }
  94. [MonoTODO]
  95. public OracleCommand GetDeleteCommand () {
  96. throw new NotImplementedException ();
  97. }
  98. [MonoTODO]
  99. public OracleCommand GetInsertCommand () {
  100. throw new NotImplementedException ();
  101. }
  102. [MonoTODO]
  103. public OracleCommand GetUpdatetCommand () {
  104. throw new NotImplementedException ();
  105. }
  106. [MonoTODO]
  107. public void RefreshSchema () {
  108. throw new NotImplementedException ();
  109. }
  110. #endregion // Methods
  111. }
  112. }