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.
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 ConflictOptions ConflictDetection {
66 get { throw new NotImplementedException (); }
67 set { throw new NotImplementedException (); }
71 public DbDataAdapter DataAdapter {
72 get { throw new NotImplementedException (); }
73 set { throw new NotImplementedException (); }
76 protected abstract DbProviderFactory ProviderFactory { get; }
79 public virtual string QuotePrefix {
80 get { throw new NotImplementedException (); }
81 set { throw new NotImplementedException (); }
85 public virtual string QuoteSuffix {
86 get { throw new NotImplementedException (); }
87 set { throw new NotImplementedException (); }
91 public SchemaLocation SchemaLocation {
92 get { throw new NotImplementedException (); }
93 set { throw new NotImplementedException (); }
97 public virtual string SchemaSeparator {
98 get { throw new NotImplementedException (); }
99 set { throw new NotImplementedException (); }
102 #endregion // Properties
106 protected abstract void ApplyParameterInfo (IDbDataParameter p, DataRow row);
109 protected virtual void BuildCache (bool closeConnection, DataRow dataRow)
111 throw new NotImplementedException ();
115 protected override void Dispose (bool disposing)
117 throw new NotImplementedException ();
121 public static Delegate FindBUilder (MulticastDelegate mcd)
123 throw new NotImplementedException ();
127 public virtual string FormatLiteral (DbConnection connection, string dataTypeName, object value)
129 throw new NotImplementedException ();
133 public DbCommand GetDeleteCommand ()
135 throw new NotImplementedException ();
139 public DbCommand GetDeleteCommand (DataRow dataRow)
141 throw new NotImplementedException ();
145 public DbCommand GetInsertCommand ()
147 throw new NotImplementedException ();
151 public DbCommand GetInsertCommand (DataRow dataRow)
153 throw new NotImplementedException ();
156 protected abstract string GetParameterName (int parameterOrdinal);
157 protected abstract string GetParameterPlaceholder (int parameterOrdinal);
160 protected DbCommand GetSelectCommand ()
162 throw new NotImplementedException ();
166 public DbCommand GetUpdateCommand ()
168 throw new NotImplementedException ();
172 public DbCommand GetUpdateCommand (DataRow dataRow)
174 throw new NotImplementedException ();
178 protected virtual DbCommand InitializeCommand (DbCommand command)
180 throw new NotImplementedException ();
184 protected internal static string[] ParseProcedureName (string procedure)
186 throw new NotImplementedException ();
190 public virtual string QuoteIdentifier (string unquotedIdentifier)
192 throw new NotImplementedException ();
196 public virtual void RefreshSchema ()
198 throw new NotImplementedException ();
202 public virtual void ResolveObjectName (DbConnection connection, string objectType, string[] identifierParts)
204 throw new NotImplementedException ();
208 protected void RowUpdatingHandler (object sender, RowUpdatingEventArgs rowUpdatingEvent)
210 throw new NotImplementedException ();
213 protected abstract void SetRowUpdatingHandler (DbDataAdapter adapter);
216 public virtual object UnformatLiteral (DbConnection connection, string dataTypeName, string literalValue)
218 throw new NotImplementedException ();
222 public virtual string UnquoteIdentifier (string quotedIdentifier)
224 throw new NotImplementedException ();
227 #endregion // Methods