2 // System.Data.Common.DbCommandBuilder
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2003
11 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
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:
21 // The above copyright notice and this permission notice shall be
22 // included in all copies or substantial portions of the Software.
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.
33 #if NET_2_0 || TARGET_JVM
35 using System.ComponentModel;
38 namespace System.Data.Common {
39 public abstract class DbCommandBuilder : Component
44 protected DbCommandBuilder ()
48 #endregion // Constructors
53 public virtual CatalogLocation CatalogLocation {
54 get { throw new NotImplementedException (); }
55 set { throw new NotImplementedException (); }
59 public virtual string CatalogSeparator {
60 get { throw new NotImplementedException (); }
61 set { throw new NotImplementedException (); }
65 public virtual ConflictOption ConflictOption {
66 get { throw new NotImplementedException (); }
67 set { throw new NotImplementedException (); }
71 public DbDataAdapter DataAdapter {
72 get { throw new NotImplementedException (); }
73 set { throw new NotImplementedException (); }
77 public virtual string QuotePrefix {
78 get { throw new NotImplementedException (); }
79 set { throw new NotImplementedException (); }
83 public virtual string QuoteSuffix {
84 get { throw new NotImplementedException (); }
85 set { throw new NotImplementedException (); }
89 public SchemaLocation SchemaLocation {
90 get { throw new NotImplementedException (); }
91 set { throw new NotImplementedException (); }
95 public virtual string SchemaSeparator {
96 get { throw new NotImplementedException (); }
97 set { throw new NotImplementedException (); }
100 #endregion // Properties
104 protected abstract void ApplyParameterInfo (DbParameter parameter,
106 StatementType statementType,
110 protected virtual void BuildCache (bool closeConnection, DataRow dataRow)
112 throw new NotImplementedException ();
116 protected override void Dispose (bool disposing)
118 throw new NotImplementedException ();
122 public static Delegate FindBUilder (MulticastDelegate mcd)
124 throw new NotImplementedException ();
128 public virtual string FormatLiteral (DbConnection connection, string dataTypeName, object value)
130 throw new NotImplementedException ();
134 public DbCommand GetDeleteCommand ()
136 throw new NotImplementedException ();
140 public DbCommand GetDeleteCommand (bool option)
142 throw new NotImplementedException ();
146 public DbCommand GetDeleteCommand (DataRow dataRow)
148 throw new NotImplementedException ();
152 public DbCommand GetInsertCommand ()
154 throw new NotImplementedException ();
158 public DbCommand GetInsertCommand (bool option)
160 throw new NotImplementedException ();
164 public DbCommand GetInsertCommand (DataRow dataRow)
166 throw new NotImplementedException ();
169 protected abstract string GetParameterName (int parameterOrdinal);
170 protected abstract string GetParameterName (String parameterName);
171 protected abstract string GetParameterPlaceholder (int parameterOrdinal);
174 protected DbCommand GetSelectCommand ()
176 throw new NotImplementedException ();
180 public DbCommand GetUpdateCommand ()
182 throw new NotImplementedException ();
186 public DbCommand GetUpdateCommand (bool option)
188 throw new NotImplementedException ();
192 public DbCommand GetUpdateCommand (DataRow dataRow)
194 throw new NotImplementedException ();
198 protected virtual DbCommand InitializeCommand (DbCommand command)
200 throw new NotImplementedException ();
204 protected internal static string[] ParseProcedureName (string procedure)
206 throw new NotImplementedException ();
210 public virtual string QuoteIdentifier (string unquotedIdentifier)
212 throw new NotImplementedException ();
216 public virtual void RefreshSchema ()
218 throw new NotImplementedException ();
222 public virtual void ResolveObjectName (DbConnection connection, string objectType, string[] identifierParts)
224 throw new NotImplementedException ();
228 protected void RowUpdatingHandler (RowUpdatingEventArgs rowUpdatingEvent)
230 throw new NotImplementedException ();
234 protected void RowUpdatingHandler (object sender, RowUpdatingEventArgs rowUpdatingEvent)
236 throw new NotImplementedException ();
239 protected abstract void SetRowUpdatingHandler (DbDataAdapter adapter);
242 public virtual object UnformatLiteral (DbConnection connection, string dataTypeName, string literalValue)
244 throw new NotImplementedException ();
248 public virtual string UnquoteIdentifier (string quotedIdentifier)
250 throw new NotImplementedException ();
253 #endregion // Methods