6a2814e606b25826220e60546a34209dfc3ef661
[mono.git] / mcs / class / System.Data / System.Data / DataRow.cs
1 //
2 // System.Data.DataRow.cs
3 //
4 // Author:
5 //   Rodrigo Moya <rodrigo@ximian.com>
6 //   Daniel Morgan <danmorg@sc.rr.com>
7 //
8 // (C) Ximian, Inc 2002
9 // (C) Daniel Morgan 2002
10 //
11
12 using System;
13 using System.Collections;
14
15 namespace System.Data
16 {
17         /// <summary>
18         /// Represents a row of data in a DataTable.
19         /// </summary>
20         public class DataRow
21         {
22                 #region Fields
23
24                 private ArrayList columns = new ArrayList();
25                 private ArrayList columnNames = new ArrayList();
26                 private DataTable table = null;
27
28                 #endregion
29
30                 #region Methods
31
32                 [MonoTODO]
33                 public void AcceptChanges() {
34                         throw new NotImplementedException ();
35                 }
36
37                 [MonoTODO]
38                 public void BeginEdit() {
39                         throw new NotImplementedException ();
40                 }
41
42                 [MonoTODO]
43                 public void CancelEdit() {
44                         throw new NotImplementedException ();
45                 }
46
47                 [MonoTODO]
48                 public void ClearErrors() {
49                         throw new NotImplementedException ();
50                 }
51
52                 [MonoTODO]
53                 public void Delete() {
54                         throw new NotImplementedException ();
55                 }
56
57                 [MonoTODO]
58                 public void EndEdit() {
59                         throw new NotImplementedException ();
60                 }
61
62                 [MonoTODO]
63                 public DataRow[] GetChildRows(DataRelation dr) {
64                         throw new NotImplementedException ();
65                 }
66
67                 [MonoTODO]
68                 public DataRow[] GetChildRows(string s) {
69                         throw new NotImplementedException ();
70                 }
71
72                 [MonoTODO]
73                 public DataRow[] GetChildRows(DataRelation dr, DataRowVersion version) {
74                         throw new NotImplementedException ();
75                 }
76
77                 [MonoTODO]
78                 public DataRow[] GetChildRows(string s, DataRowVersion version) {
79                         throw new NotImplementedException ();
80                 }
81
82                 [MonoTODO]
83                 public string GetColumnError(DataColumn col) {
84                         throw new NotImplementedException ();
85                 }
86
87                 [MonoTODO]
88                 public string GetColumnError(int index) {
89                         throw new NotImplementedException ();
90                 }
91
92                 [MonoTODO]
93                 public string GetColumnError(string s) {
94                         throw new NotImplementedException ();
95                 }
96
97                 [MonoTODO]
98                 public DataColumn[] GetColumnsInError() {
99                         throw new NotImplementedException ();
100                 }
101
102                 [MonoTODO]
103                 public DataRow GetParentRow(DataRelation dr) {
104                         throw new NotImplementedException ();
105                 }
106
107                 [MonoTODO]
108                 public DataRow GetParentRow(string s) {
109                         throw new NotImplementedException ();
110                 }
111
112                 [MonoTODO]
113                 public DataRow GetParentRow(DataRelation dr, DataRowVersion version) {
114                         throw new NotImplementedException ();
115                 }
116
117                 [MonoTODO]
118                 public DataRow GetParentRow(string s, DataRowVersion version) {
119                         throw new NotImplementedException ();
120                 }
121
122                 [MonoTODO]
123                 public DataRow[] GetParentRows(DataRelation dr) {
124                         throw new NotImplementedException ();
125                 }
126
127                 [MonoTODO]
128                 public DataRow[] GetParentRows(string s) {
129                         throw new NotImplementedException ();
130                 }
131
132                 [MonoTODO]
133                 public DataRow[] GetParentRows(DataRelation dr, DataRowVersion version) {
134                         throw new NotImplementedException ();
135                 }
136
137                 [MonoTODO]
138                 public DataRow[] GetParentRows(string s, DataRowVersion version) {
139                         throw new NotImplementedException ();
140                 }
141
142                 [MonoTODO]
143                 public bool HasVersion(DataRowVersion version) {
144                         throw new NotImplementedException ();
145                 }
146
147                 [MonoTODO]
148                 public bool IsNull(DataColumn dc) {
149                         throw new NotImplementedException ();
150                 }
151
152                 [MonoTODO]
153                 public bool IsNull(int i) {
154                         throw new NotImplementedException ();
155                 }
156
157                 [MonoTODO]
158                 public bool IsNull(string s) {
159                         throw new NotImplementedException ();
160                 }
161
162                 [MonoTODO]
163                 public bool IsNull(DataColumn dc, DataRowVersion version) {
164                         throw new NotImplementedException ();
165                 }
166
167                 [MonoTODO]
168                 public void RejectChanges() {
169                         throw new NotImplementedException ();
170                 }
171
172                 [MonoTODO]
173                 public void SetColumnError(DataColumn dc, string err) {
174                         throw new NotImplementedException ();
175                 }
176
177                 [MonoTODO]
178                 public void SetColumnError(int i, string err) {
179                         throw new NotImplementedException ();
180                 }
181
182                 [MonoTODO]
183                 public void SetColumnError(string a, string err) {
184                         throw new NotImplementedException ();
185                 }
186
187                 [MonoTODO]
188                 public void SetParentRow(DataRow row) {
189                         throw new NotImplementedException ();
190                 }
191
192                 [MonoTODO]
193                 public void SetParentRow(DataRow row, DataRelation rel) {
194                         throw new NotImplementedException ();
195                 }
196
197                 [MonoTODO]
198                 protected void SetNull(DataColumn column) {
199                         throw new NotImplementedException ();
200                 }
201                 
202                 #endregion // Methods
203
204                 #region Properties
205
206                 public bool HasErrors {
207                         [MonoTODO]
208                         get { throw new NotImplementedException (); }
209                 }
210
211                 public object this[string s] {
212                         [MonoTODO]
213                         get { throw new NotImplementedException (); }
214
215                         [MonoTODO]
216                         set { throw new NotImplementedException (); }
217                 }
218
219                 public object this[DataColumn dc] {
220                         [MonoTODO]
221                         get { throw new NotImplementedException (); }
222
223                         [MonoTODO]
224                         set { throw new NotImplementedException (); }
225                 }
226
227                 public object this[int i] {
228                         [MonoTODO]
229                         get { throw new NotImplementedException (); }
230
231                         [MonoTODO]
232                         set { throw new NotImplementedException (); }
233                 }
234
235                 public object this[string s, DataRowVersion version] {
236                         [MonoTODO]
237                         get { throw new NotImplementedException (); }
238                 }
239
240                 public object this[DataColumn dc, DataRowVersion version] {
241                         [MonoTODO]
242                         get { throw new NotImplementedException (); }
243                 }
244
245                 public object this[int i, DataRowVersion version] {
246                         [MonoTODO]
247                         get { throw new NotImplementedException (); }
248                 }
249
250                 public object[] ItemArray {
251                         [MonoTODO]
252                         get { throw new NotImplementedException (); }
253
254                         [MonoTODO]
255                         set { throw new NotImplementedException (); }
256                 }
257
258                 public string RowError {
259                         [MonoTODO]
260                         get { throw new NotImplementedException (); }
261
262                         [MonoTODO]
263                         set { throw new NotImplementedException (); }
264                 }
265
266                 public DataRowState RowState {
267                         [MonoTODO]
268                         get { throw new NotImplementedException (); }
269                 }
270
271                 public DataTable Table {
272                         [MonoTODO]
273                         get {
274                                 return table;
275                         }
276                 }
277
278                 #endregion // Public Properties
279
280                 internal void SetTable(DataTable table) {
281                         this.table = table; 
282                         // FIXME: called by DataTable
283                 }
284         }
285 }