2002-05-10 Rodrigo Moya <rodrigo@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data / DataSet.cs
1 // 
2 // System.Data/DataSet.cs
3 //
4 // Author:
5 //   Christopher Podurgiel <cpodurgiel@msn.com>
6 //   Daniel Morgan <danmorg@sc.rr.com>
7 //   Rodrigo Moya <rodrigo@ximian.com>
8 //
9 // (C) Ximian, Inc. 2002
10 //
11
12 using System;
13 using System.Collections;
14 using System.ComponentModel;
15 using System.Globalization;
16 using System.IO;
17 using System.Runtime.Serialization;
18 using System.Xml;
19
20 namespace System.Data
21 {
22         /// <summary>
23         /// an in-memory cache of data 
24         /// </summary>
25         [Serializable]
26         public class DataSet : MarshalByValueComponent, IListSource,
27                 ISupportInitialize, ISerializable {
28
29                 private string dataSetName;
30                 private bool caseSensitive;
31                 private bool enforceConstraints;
32                 private DataTableCollection tableCollection;
33                 
34                 #region Constructors
35
36                 [MonoTODO]
37                 public DataSet() {
38                         tableCollection = new DataTableCollection ();
39                 }
40
41                 [MonoTODO]
42                 public DataSet(string name) : this () {
43                         dataSetName = name;
44                 }
45
46                 [MonoTODO]
47                 protected DataSet(SerializationInfo info, StreamingContext context) : this () {
48                         throw new NotImplementedException ();
49                 }
50
51                 #endregion // Constructors
52
53                 #region Public Properties
54
55                 public bool CaseSensitive {
56                         get {
57                                 return caseSensitive;
58                         } 
59                         set {
60                                 caseSensitive = value;
61                         }
62                 }
63
64                 public string DataSetName {
65                         get {
66                                 return dataSetName;
67                         } 
68                         
69                         set {
70                                 dataSetName = value;
71                         }
72                 }
73
74                 public DataViewManager DefaultViewManager {
75                         [MonoTODO]
76                         get {
77                                 throw new NotImplementedException ();
78                         } 
79                         
80                         [MonoTODO]
81                         set {
82                                 throw new NotImplementedException ();
83                         }
84                 }
85
86                 public bool EnforceConstraints {
87                         get {
88                                 return enforceConstraints;
89                         } 
90                         
91                         set {
92                                 enforceConstraints = value;
93                         }
94                 }
95
96                 public PropertyCollection ExtendedProperties {
97                         [MonoTODO]
98                         get {
99                                 throw new NotImplementedException ();
100                         }
101                 }
102
103                 public bool HasErrors {
104                         [MonoTODO]
105                         get {
106                                 throw new NotImplementedException ();
107                         }
108                 }
109
110                 public CultureInfo Locale {
111                         [MonoTODO]
112                         get { 
113                                 throw new NotImplementedException ();
114                         }
115                         
116                         [MonoTODO]
117                         set {
118                                 throw new NotImplementedException ();
119                         }
120                 }
121
122                 public string Namespace {
123                         [MonoTODO]
124                         get {
125                                 throw new NotImplementedException ();
126                         } 
127                         
128                         [MonoTODO]
129                         set {
130                                 throw new NotImplementedException ();
131                         }
132                 }
133
134                 public string Prefix {
135                         [MonoTODO]
136                         get {
137                                 throw new NotImplementedException ();
138                         } 
139                         
140                         [MonoTODO]
141                         set {
142                                 throw new NotImplementedException ();
143                         }
144                 }
145
146                 public DataRelationCollection Relations {
147                         [MonoTODO]
148                         get{
149                                 throw new NotImplementedException ();
150                         }
151                 }
152
153                 public override ISite Site {
154                         [MonoTODO]
155                         get {
156                                 throw new NotImplementedException ();
157                         } 
158                         
159                         [MonoTODO]
160                         set {
161                                 throw new NotImplementedException ();
162                         }
163                 }
164
165                 public DataTableCollection Tables {
166                         get {
167                                 return tableCollection;
168                         }
169                 }
170
171                 #endregion // Public Properties
172
173                 #region Public Methods
174
175                 public void AcceptChanges()
176                 {
177                         throw new NotImplementedException ();
178                 }
179
180                 public void Clear()
181                 {
182                         throw new NotImplementedException ();
183                 }
184
185                 public virtual DataSet Clone()
186                 {
187                         throw new NotImplementedException ();
188                 }
189
190                 public DataSet Copy()
191                 {
192                         throw new NotImplementedException ();
193                 }
194
195                 public DataSet GetChanges()
196                 {
197                         throw new NotImplementedException ();
198                 }
199
200                 
201                 public DataSet GetChanges(DataRowState rowStates)
202                 {
203                         throw new NotImplementedException ();
204                 }
205
206                 public string GetXml()
207                 {
208                         throw new NotImplementedException ();
209                 }
210
211                 public string GetXmlSchema()
212                 {
213                         throw new NotImplementedException ();
214                 }
215
216                 public virtual void RejectChanges()
217                 {
218                         throw new NotImplementedException ();
219                 }
220
221                 public virtual void Reset()
222                 {
223                         throw new NotImplementedException ();
224                 }
225
226                 public void WriteXml(Stream stream)
227                 {
228                         throw new NotImplementedException ();
229                 }
230
231                 public void WriteXml(string fileName)
232                 {
233                         throw new NotImplementedException ();
234                 }
235
236                 public void WriteXml(TextWriter writer)
237                 {
238                         throw new NotImplementedException ();
239                 }
240
241                 public void WriteXml(XmlWriter writer)
242                 {
243                         throw new NotImplementedException ();
244                 }
245
246                 public void WriteXml(Stream stream, XmlWriteMode mode)
247                 {
248                         throw new NotImplementedException ();
249                 }
250
251                 public void WriteXml(string fileName, XmlWriteMode mode)
252                 {
253                         throw new NotImplementedException ();
254                 }
255
256                 public void WriteXml(TextWriter writer, XmlWriteMode mode)
257                 {
258                         throw new NotImplementedException ();
259                 }
260
261                 public void WriteXml(XmlWriter writer, XmlWriteMode mode)
262                 {
263                         throw new NotImplementedException ();
264                 }
265
266                 public void WriteXmlSchema(Stream stream)
267                 {
268                         throw new NotImplementedException ();
269                 }
270
271                 public void WriteXmlSchema(string fileName)
272                 {
273                         throw new NotImplementedException ();
274                 }
275
276                 public void WriteXmlSchema(TextWriter writer)
277                 {
278                 }
279
280                 public void WriteXmlSchema(XmlWriter writer)
281                 {
282                         throw new NotImplementedException ();
283                 }
284
285                 #endregion // Public Methods
286
287                 #region Public Events
288
289                 public event MergeFailedEventHandler MergeFailed;
290
291                 #endregion // Public Events
292
293                 #region Destructors
294
295                 ~DataSet()
296                 {
297                 }
298
299                 #endregion Destructors
300
301                 #region IListSource methods
302                 IList IListSource.GetList ()
303                 {
304                         throw new NotImplementedException ();
305                 }
306
307                 bool IListSource.ContainsListCollection {
308                         get {
309                                 throw new NotImplementedException ();
310                         }
311                 }
312                 #endregion IListSource methods
313                 
314                 #region ISupportInitialize methods
315                 void ISupportInitialize.BeginInit ()
316                 {
317                         throw new NotImplementedException ();
318                 }
319
320                 void ISupportInitialize.EndInit ()
321                 {
322                         throw new NotImplementedException ();
323                 }
324                 #endregion
325
326                 #region ISerializable
327                 void ISerializable.GetObjectData (SerializationInfo si, StreamingContext sc)
328                 {
329                         throw new NotImplementedException ();
330                 }
331                 #endregion
332         }
333 }