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