2004-03-17 Umadevi S (sumadevi@novell.com)
[mono.git] / mcs / class / System.Data / System.Data.OleDb / OleDbCommandBuilder.cs
1 //
2 // System.Data.OleDb.OleDbCommandBuilder
3 //
4 // Author:
5 //   Rodrigo Moya (rodrigo@ximian.com)
6 //   Tim Coleman (tim@timcoleman.com)
7 //
8 // Copyright (C) Rodrigo Moya, 2002
9 // Copyright (C) Tim Coleman, 2002
10 //
11
12 using System.ComponentModel;
13 using System.Data;
14 using System.Data.Common;
15
16 namespace System.Data.OleDb
17 {
18         /// <summary>
19         /// 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.
20         /// </summary>
21         public sealed class OleDbCommandBuilder : Component
22         {
23                 #region Fields
24
25                 OleDbDataAdapter adapter;
26                 string quotePrefix;
27                 string quoteSuffix;
28
29                 #endregion // Fields
30
31                 #region Constructors
32                 
33                 public OleDbCommandBuilder ()
34                 {
35                         adapter = null;
36                         quotePrefix = String.Empty;
37                         quoteSuffix = String.Empty;
38                 }
39
40                 public OleDbCommandBuilder (OleDbDataAdapter adapter) 
41                         : this ()
42                 {
43                         this.adapter = adapter;
44                 }
45
46                 #endregion // Constructors
47
48                 #region Properties
49
50                 public OleDbDataAdapter DataAdapter {
51                         get {
52                                 return adapter;
53                         }
54                         set {
55                                 adapter = value;
56                         }
57                 }
58
59                 public string QuotePrefix {
60                         get {
61                                 return quotePrefix;
62                         }
63                         set {
64                                 quotePrefix = value;
65                         }
66                 }
67
68                 public string QuoteSuffix {
69                         get {
70                                 return quoteSuffix;
71                         }
72                         set {
73                                 quoteSuffix = value;
74                         }
75                 }
76
77                 #endregion // Properties
78
79                 #region Methods
80
81                 public static void DeriveParameters (OleDbCommand command) 
82                 {
83                         throw new NotImplementedException ();
84                 }
85
86                 [MonoTODO]
87                 protected override void Dispose (bool disposing) 
88                 {
89                         throw new NotImplementedException ();           
90                 }
91
92                 [MonoTODO]
93                 public OleDbCommand GetDeleteCommand ()
94                 {
95                         throw new NotImplementedException ();
96                 }
97
98                 [MonoTODO]
99                 public OleDbCommand GetInsertCommand ()
100                 {
101                         throw new NotImplementedException ();
102                 }
103
104                 [MonoTODO]
105                 public OleDbCommand GetUpdatetCommand ()
106                 {
107                         throw new NotImplementedException ();
108                 }
109
110                 [MonoTODO]
111                 public void RefreshSchema ()
112                 {
113                         throw new NotImplementedException ();
114                 }
115
116                 #endregion // Methods
117         }
118 }