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