Test mailing list
[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
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 ConflictOptions ConflictDetection {
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                 protected abstract DbProviderFactory ProviderFactory { get; }
77
78                 [MonoTODO]
79                 public virtual string QuotePrefix {
80                         get { throw new NotImplementedException (); }
81                         set { throw new NotImplementedException (); }
82                 }
83
84                 [MonoTODO]
85                 public virtual string QuoteSuffix {
86                         get { throw new NotImplementedException (); }
87                         set { throw new NotImplementedException (); }
88                 }
89
90                 [MonoTODO]
91                 public SchemaLocation SchemaLocation {
92                         get { throw new NotImplementedException (); }
93                         set { throw new NotImplementedException (); }
94                 }
95
96                 [MonoTODO]
97                 public virtual string SchemaSeparator {
98                         get { throw new NotImplementedException (); }
99                         set { throw new NotImplementedException (); }
100                 }
101
102                 #endregion // Properties
103
104                 #region Methods
105
106                 protected abstract void ApplyParameterInfo (IDbDataParameter p, DataRow row);
107
108                 [MonoTODO]
109                 protected virtual void BuildCache (bool closeConnection, DataRow dataRow)
110                 {
111                         throw new NotImplementedException ();
112                 }
113
114                 [MonoTODO]
115                 protected override void Dispose (bool disposing)
116                 {
117                         throw new NotImplementedException ();
118                 }
119
120                 [MonoTODO]
121                 public static Delegate FindBUilder (MulticastDelegate mcd)
122                 {
123                         throw new NotImplementedException ();
124                 }
125
126                 [MonoTODO]
127                 public virtual string FormatLiteral (DbConnection connection, string dataTypeName, object value)
128                 {
129                         throw new NotImplementedException ();
130                 }
131
132                 [MonoTODO]
133                 public DbCommand GetDeleteCommand ()
134                 {
135                         throw new NotImplementedException ();
136                 }
137
138                 [MonoTODO]
139                 public DbCommand GetDeleteCommand (DataRow dataRow)
140                 {
141                         throw new NotImplementedException ();
142                 }
143
144                 [MonoTODO]
145                 public DbCommand GetInsertCommand ()
146                 {
147                         throw new NotImplementedException ();
148                 }
149
150                 [MonoTODO]
151                 public DbCommand GetInsertCommand (DataRow dataRow)
152                 {
153                         throw new NotImplementedException ();
154                 }
155
156                 protected abstract string GetParameterName (int parameterOrdinal);
157                 protected abstract string GetParameterPlaceholder (int parameterOrdinal);
158
159                 [MonoTODO]
160                 protected DbCommand GetSelectCommand ()
161                 {
162                         throw new NotImplementedException ();
163                 }
164
165                 [MonoTODO]
166                 public DbCommand GetUpdateCommand ()
167                 {
168                         throw new NotImplementedException ();
169                 }
170
171                 [MonoTODO]
172                 public DbCommand GetUpdateCommand (DataRow dataRow)
173                 {
174                         throw new NotImplementedException ();
175                 }
176
177                 [MonoTODO]
178                 protected virtual DbCommand InitializeCommand (DbCommand command)
179                 {
180                         throw new NotImplementedException ();
181                 }
182
183                 [MonoTODO]
184                 protected internal static string[] ParseProcedureName (string procedure)
185                 {
186                         throw new NotImplementedException ();
187                 }
188
189                 [MonoTODO]
190                 public virtual string QuoteIdentifier (string unquotedIdentifier)
191                 {
192                         throw new NotImplementedException ();
193                 }
194
195                 [MonoTODO]
196                 public virtual void RefreshSchema ()
197                 {
198                         throw new NotImplementedException ();
199                 }
200
201                 [MonoTODO]
202                 public virtual void ResolveObjectName (DbConnection connection, string objectType, string[] identifierParts)
203                 {
204                         throw new NotImplementedException ();
205                 }
206
207                 [MonoTODO]
208                 protected void RowUpdatingHandler (object sender, RowUpdatingEventArgs rowUpdatingEvent)
209                 {
210                         throw new NotImplementedException ();
211                 }
212
213                 protected abstract void SetRowUpdatingHandler (DbDataAdapter adapter);
214
215                 [MonoTODO]
216                 public virtual object UnformatLiteral (DbConnection connection, string dataTypeName, string literalValue)
217                 {
218                         throw new NotImplementedException ();
219                 }
220
221                 [MonoTODO]
222                 public virtual string UnquoteIdentifier (string quotedIdentifier)
223                 {
224                         throw new NotImplementedException ();
225                 }
226
227                 #endregion // Methods
228         }
229 }
230
231 #endif