(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Data / System.Data.Sql / SqlMetaData.cs
blobc1fa5c41ca452631a084a8292d23b85f9c6da537
1 //
2 // System.Data.Sql.SqlMetaData
3 //
4 // Author:
5 // Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2003
8 //
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:
20 //
21 // The above copyright notice and this permission notice shall be
22 // included in all copies or substantial portions of the Software.
23 //
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
35 using System;
36 using System.Data.SqlTypes;
38 namespace System.Data.Sql {
39 public sealed class SqlMetaData
41 #region Fields
43 public const long x_lMax = -1;
45 SqlCompareOptions compareOptions = SqlCompareOptions.None;
46 string databaseName = null;
47 bool isPartialLength = false;
48 long localeId = 0L;
49 long maxLength = 4L;
50 string name;
51 byte precision = 10;
52 byte scale = 0;
53 string schemaName = null;
54 SqlDbType sqlDbType = SqlDbType.Int;
56 #endregion // Fields
58 #region Constructors
60 [MonoTODO]
61 public SqlMetaData (string name, SqlDbType type)
63 this.name = name;
64 this.sqlDbType = type;
67 [MonoTODO]
68 public SqlMetaData (string name, SqlDbType type, long maxLength)
70 this.maxLength = maxLength;
71 this.name = name;
72 this.sqlDbType = type;
75 [MonoTODO]
76 public SqlMetaData (string name, SqlDbType type, SqlMetaData[] columnMetaData)
78 this.sqlDbType = type;
81 [MonoTODO]
82 public SqlMetaData (string name, SqlDbType type, byte precision, byte scale)
84 this.name = name;
85 this.precision = precision;
86 this.scale = scale;
87 this.sqlDbType = type;
90 [MonoTODO]
91 public SqlMetaData (string strName, long maxLength, long localeId, SqlCompareOptions compareOptions, string udtTypeName)
93 this.compareOptions = compareOptions;
94 this.localeId = localeId;
95 this.maxLength = maxLength;
96 this.name = strName;
99 [MonoTODO]
100 public SqlMetaData (string name, SqlDbType type, long maxLength, long locale, SqlCompareOptions compareOptions)
102 this.compareOptions = compareOptions;
103 this.localeId = locale;
104 this.maxLength = maxLength;
105 this.name = name;
106 this.sqlDbType = type;
109 [MonoTODO]
110 public SqlMetaData (string name, SqlDbType type, long maxLength, byte precision, byte scale, long localeId, SqlCompareOptions compareOptions, string DatabaseName, string SchemaName, bool PartialLength, string udtTypeName)
112 this.compareOptions = compareOptions;
113 this.databaseName = DatabaseName;
114 this.isPartialLength = PartialLength;
115 this.localeId = localeId;
116 this.maxLength = maxLength;
117 this.name = name;
118 this.precision = precision;
119 this.scale = scale;
120 this.schemaName = SchemaName;
121 this.sqlDbType = type;
124 #endregion // Constructors
126 #region Properties
128 public SqlCompareOptions CompareOptions {
129 get { return compareOptions; }
132 public string DatabaseName {
133 get { return databaseName; }
136 [MonoTODO]
137 public DbType DbType {
138 get { throw new NotImplementedException (); }
141 public bool IsPartialLength {
142 get { return isPartialLength; }
145 public long LocaleId {
146 get { return localeId; }
149 public static long MAX {
150 get { return x_lMax; }
153 public long MaxLength {
154 get { return maxLength; }
157 public string Name {
158 get { return name; }
161 public byte Precision {
162 get { return precision; }
165 public byte Scale {
166 get { return scale; }
169 public string SchemaName {
170 get { return schemaName; }
173 public SqlDbType SqlDbType {
174 get { return sqlDbType; }
177 [MonoTODO]
178 public string TypeName {
179 get { throw new NotImplementedException (); }
182 #endregion // Properties
184 #region Methods
186 [MonoTODO]
187 public bool Adjust (bool value)
189 throw new NotImplementedException ();
192 [MonoTODO]
193 public byte Adjust (byte value)
195 throw new NotImplementedException ();
198 [MonoTODO]
199 public byte[] Adjust (byte[] value)
201 throw new NotImplementedException ();
204 [MonoTODO]
205 public char Adjust (char value)
207 throw new NotImplementedException ();
210 [MonoTODO]
211 public char[] Adjust (char[] value)
213 throw new NotImplementedException ();
216 [MonoTODO]
217 public DateTime Adjust (DateTime value)
219 throw new NotImplementedException ();
222 [MonoTODO]
223 public decimal Adjust (decimal value)
225 throw new NotImplementedException ();
228 [MonoTODO]
229 public double Adjust (double value)
231 throw new NotImplementedException ();
234 [MonoTODO]
235 public Guid Adjust (Guid value)
237 throw new NotImplementedException ();
240 [MonoTODO]
241 public short Adjust (short value)
243 throw new NotImplementedException ();
246 [MonoTODO]
247 public int Adjust (int value)
249 throw new NotImplementedException ();
252 [MonoTODO]
253 public long Adjust (long value)
255 throw new NotImplementedException ();
258 [MonoTODO]
259 public object Adjust (object value)
261 throw new NotImplementedException ();
264 [MonoTODO]
265 public float Adjust (float value)
267 throw new NotImplementedException ();
270 [MonoTODO]
271 public SqlBinary Adjust (SqlBinary value)
273 throw new NotImplementedException ();
276 [MonoTODO]
277 public SqlBoolean Adjust (SqlBoolean value)
279 throw new NotImplementedException ();
282 [MonoTODO]
283 public SqlByte Adjust (SqlByte value)
285 throw new NotImplementedException ();
288 [MonoTODO]
289 public SqlBytes Adjust (SqlBytes value)
291 throw new NotImplementedException ();
294 [MonoTODO]
295 public SqlChars Adjust (SqlChars value)
297 throw new NotImplementedException ();
300 [MonoTODO]
301 public SqlDateTime Adjust (SqlDateTime value)
303 throw new NotImplementedException ();
306 [MonoTODO]
307 public SqlDecimal Adjust (SqlDecimal value)
309 throw new NotImplementedException ();
312 [MonoTODO]
313 public SqlDouble Adjust (SqlDouble value)
315 throw new NotImplementedException ();
318 [MonoTODO]
319 public SqlGuid Adjust (SqlGuid value)
321 throw new NotImplementedException ();
324 [MonoTODO]
325 public SqlInt16 Adjust (SqlInt16 value)
327 throw new NotImplementedException ();
330 [MonoTODO]
331 public SqlInt32 Adjust (SqlInt32 value)
333 throw new NotImplementedException ();
336 [MonoTODO]
337 public SqlInt64 Adjust (SqlInt64 value)
339 throw new NotImplementedException ();
342 [MonoTODO]
343 public SqlMoney Adjust (SqlMoney value)
345 throw new NotImplementedException ();
348 [MonoTODO]
349 public SqlSingle Adjust (SqlSingle value)
351 throw new NotImplementedException ();
354 [MonoTODO]
355 public SqlString Adjust (SqlString value)
357 throw new NotImplementedException ();
360 [MonoTODO]
361 public string Adjust (string value)
363 throw new NotImplementedException ();
366 [MonoTODO]
367 public SqlMetaData GetMetaData (int i)
369 throw new NotImplementedException ();
372 [MonoTODO]
373 public static SqlMetaData InferFromValue (object value, string name)
375 throw new NotImplementedException ();
378 #endregion // Methods
382 #endif