2006-02-17 Chris Toshok <toshok@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data.Common / DbCommandBuilder.cs
1 //
2 // System.Data.Common.DbCommandBuilder
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2003
8 //
9
10 //
11 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 //
13 // Permission is hereby granted, free of charge, to any person obtaining
14 // a copy of this software and associated documentation files (the
15 // "Software"), to deal in the Software without restriction, including
16 // without limitation the rights to use, copy, modify, merge, publish,
17 // distribute, sublicense, and/or sell copies of the Software, and to
18 // permit persons to whom the Software is furnished to do so, subject to
19 // the following conditions:
20 // 
21 // The above copyright notice and this permission notice shall be
22 // included in all copies or substantial portions of the Software.
23 // 
24 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 //
32
33 #if NET_2_0 || TARGET_JVM
34
35 using System.ComponentModel;
36 using System.Data;
37
38 namespace System.Data.Common {
39         public abstract class DbCommandBuilder : Component
40         {
41                 #region Constructors
42
43                 [MonoTODO]
44                 protected DbCommandBuilder ()
45                 {
46                 }
47
48                 #endregion // Constructors
49
50                 #region Properties
51
52                 [MonoTODO]
53                 public virtual CatalogLocation CatalogLocation {
54                         get { throw new NotImplementedException (); }
55                         set { throw new NotImplementedException (); }
56                 }
57
58                 [MonoTODO]
59                 public virtual string CatalogSeparator {
60                         get { throw new NotImplementedException (); }
61                         set { throw new NotImplementedException (); }
62                 }
63
64                 [MonoTODO]
65                 public virtual ConflictOption ConflictOption {
66                         get { throw new NotImplementedException (); }
67                         set { throw new NotImplementedException (); }
68                 }
69
70                 [MonoTODO]
71                 public DbDataAdapter DataAdapter {
72                         get { throw new NotImplementedException (); }
73                         set { throw new NotImplementedException (); }
74                 }
75
76                 [MonoTODO]
77                 public virtual string QuotePrefix {
78                         get { throw new NotImplementedException (); }
79                         set { throw new NotImplementedException (); }
80                 }
81
82                 [MonoTODO]
83                 public virtual string QuoteSuffix {
84                         get { throw new NotImplementedException (); }
85                         set { throw new NotImplementedException (); }
86                 }
87
88                 [MonoTODO]
89                 public SchemaLocation SchemaLocation {
90                         get { throw new NotImplementedException (); }
91                         set { throw new NotImplementedException (); }
92                 }
93
94                 [MonoTODO]
95                 public virtual string SchemaSeparator {
96                         get { throw new NotImplementedException (); }
97                         set { throw new NotImplementedException (); }
98                 }
99                 
100                 #endregion // Properties
101
102                 #region Methods
103
104                 protected abstract void ApplyParameterInfo (DbParameter parameter, 
105                                                             DataRow row, 
106                                                             StatementType statementType, 
107                                                             bool whereClause);
108
109                 [MonoTODO]
110                 protected virtual void BuildCache (bool closeConnection, DataRow dataRow)
111                 {
112                         throw new NotImplementedException ();
113                 }
114
115                 [MonoTODO]
116                 protected override void Dispose (bool disposing)
117                 {
118                         throw new NotImplementedException ();
119                 }
120
121                 [MonoTODO]
122                 public static Delegate FindBUilder (MulticastDelegate mcd)
123                 {
124                         throw new NotImplementedException ();
125                 }
126
127                 [MonoTODO]
128                 public virtual string FormatLiteral (DbConnection connection, string dataTypeName, object value)
129                 {
130                         throw new NotImplementedException ();
131                 }
132
133                 [MonoTODO]
134                 public DbCommand GetDeleteCommand ()
135                 {
136                         throw new NotImplementedException ();
137                 }
138
139                 [MonoTODO]
140                 public DbCommand GetDeleteCommand (bool option)
141                 {
142                         throw new NotImplementedException ();
143                 }
144
145                 [MonoTODO]
146                 public DbCommand GetDeleteCommand (DataRow dataRow)
147                 {
148                         throw new NotImplementedException ();
149                 }
150
151                 [MonoTODO]
152                 public DbCommand GetInsertCommand ()
153                 {
154                         throw new NotImplementedException ();
155                 }
156
157                 [MonoTODO]
158                 public DbCommand GetInsertCommand (bool option)
159                 {
160                         throw new NotImplementedException ();
161                 }
162
163                 [MonoTODO]
164                 public DbCommand GetInsertCommand (DataRow dataRow)
165                 {
166                         throw new NotImplementedException ();
167                 }
168
169                 protected abstract string GetParameterName (int parameterOrdinal);
170                 protected abstract string GetParameterName (String parameterName);
171                 protected abstract string GetParameterPlaceholder (int parameterOrdinal);
172
173                 [MonoTODO]
174                 protected DbCommand GetSelectCommand ()
175                 {
176                         throw new NotImplementedException ();
177                 }
178
179                 [MonoTODO]
180                 public DbCommand GetUpdateCommand ()
181                 {
182                         throw new NotImplementedException ();
183                 }
184
185                 [MonoTODO]
186                 public DbCommand GetUpdateCommand (bool option)
187                 {
188                         throw new NotImplementedException ();
189                 }
190
191                 [MonoTODO]
192                 public DbCommand GetUpdateCommand (DataRow dataRow)
193                 {
194                         throw new NotImplementedException ();
195                 }
196
197                 [MonoTODO]
198                 protected virtual DbCommand InitializeCommand (DbCommand command)
199                 {
200                         throw new NotImplementedException ();
201                 }
202
203                 [MonoTODO]
204                 protected internal static string[] ParseProcedureName (string procedure)
205                 {
206                         throw new NotImplementedException ();
207                 }
208
209                 [MonoTODO]
210                 public virtual string QuoteIdentifier (string unquotedIdentifier)
211                 {
212                         throw new NotImplementedException ();
213                 }
214
215                 [MonoTODO]
216                 public virtual void RefreshSchema ()
217                 {
218                         throw new NotImplementedException ();
219                 }
220
221                 [MonoTODO]
222                 public virtual void ResolveObjectName (DbConnection connection, string objectType, string[] identifierParts)
223                 {
224                         throw new NotImplementedException ();
225                 }
226
227                 [MonoTODO]
228                 protected void RowUpdatingHandler (RowUpdatingEventArgs rowUpdatingEvent)
229                 {
230                         throw new NotImplementedException ();
231                 }
232
233                 [MonoTODO]
234                 protected void RowUpdatingHandler (object sender, RowUpdatingEventArgs rowUpdatingEvent)
235                 {
236                         throw new NotImplementedException ();
237                 }
238
239                 protected abstract void SetRowUpdatingHandler (DbDataAdapter adapter);
240
241                 [MonoTODO]
242                 public virtual object UnformatLiteral (DbConnection connection, string dataTypeName, string literalValue)
243                 {
244                         throw new NotImplementedException ();
245                 }
246
247                 [MonoTODO]
248                 public virtual string UnquoteIdentifier (string quotedIdentifier)
249                 {
250                         throw new NotImplementedException ();
251                 }
252
253                 #endregion // Methods
254         }
255 }
256
257 #endif