diff options
author | Tim Coleman <tim@mono-cvs.ximian.com> | 2003-12-20 00:20:16 +0300 |
---|---|---|
committer | Tim Coleman <tim@mono-cvs.ximian.com> | 2003-12-20 00:20:16 +0300 |
commit | bd67399d253ee27662198278006d6a62177968ee (patch) | |
tree | 24d5c7bcce09da8e2a153c7ba4982aa4012fa8b3 /mcs/class/System.Data/System.Data.SqlTypes | |
parent | d5b90782e79d6a6b30596592f7ccf186ea2c5c0a (diff) |
2003-12-19 Tim Coleman <tim@timcoleman.com>
* SqlBytes.cs SqlChars.cs SqlDate.cs SqlStreamChars.cs SqlTime.cs
* SqlUtcDateTime.cs SqlXmlReader.cs:
New stubs added
svn path=/trunk/mcs/; revision=21368
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlTypes')
8 files changed, 597 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlTypes/ChangeLog b/mcs/class/System.Data/System.Data.SqlTypes/ChangeLog index 3b7001695d6..5050be4015c 100644 --- a/mcs/class/System.Data/System.Data.SqlTypes/ChangeLog +++ b/mcs/class/System.Data/System.Data.SqlTypes/ChangeLog @@ -1,3 +1,7 @@ +2003-12-19 Tim Coleman <tim@timcoleman.com> + * SqlBytes.cs SqlChars.cs SqlDate.cs SqlStreamChars.cs SqlTime.cs + * SqlUtcDateTime.cs SqlXmlReader.cs: + New stubs added 2003-06-03 Ville Palo <vi64pa@kolumbus.fi> * SqlBinary.cs: Changed one SqlTypeException --> IndexOutOfRange diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlBytes.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlBytes.cs new file mode 100644 index 00000000000..93091e35c1c --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlTypes/SqlBytes.cs @@ -0,0 +1,90 @@ +// +// System.Data.SqlTypes.SqlBytes +// +// Author: +// Tim Coleman <tim@timcoleman.com> +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System; +using System.Globalization; +using System.IO; +using System.Xml; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace System.Data.SqlTypes +{ + [MonoTODO] + public sealed class SqlBytes : INullable, IXmlSerializable + { + #region Fields + + bool notNull; + + #endregion + + #region Constructors + + [MonoTODO] + public SqlBytes (byte[] buffer) + { + notNull = true; + } + + [MonoTODO] + public SqlBytes (SqlBinary value) + : this (value.Value) + { + } + + [MonoTODO] + public SqlBytes (Stream s) + { + notNull = true; + } + + [MonoTODO] + public SqlBytes (IntPtr buffer, long length) + { + notNull = true; + } + + #endregion + + #region Properties + + public bool IsNull { + get { return !notNull; } + } + + #endregion + + #region Methods + + [MonoTODO] + XmlSchema IXmlSerializable.GetSchema () + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.ReadXml (XmlReader reader) + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.WriteXml (XmlWriter writer) + { + throw new NotImplementedException (); + } + + #endregion + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlChars.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlChars.cs new file mode 100644 index 00000000000..076af263ad3 --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlTypes/SqlChars.cs @@ -0,0 +1,89 @@ +// +// System.Data.SqlTypes.SqlChars +// +// Author: +// Tim Coleman <tim@timcoleman.com> +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System; +using System.Globalization; +using System.Xml; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace System.Data.SqlTypes +{ + [MonoTODO] + public sealed class SqlChars : INullable, IXmlSerializable + { + #region Fields + + bool notNull; + + #endregion + + #region Constructors + + [MonoTODO] + public SqlChars (char[] buffer) + { + notNull = true; + } + + [MonoTODO] + public SqlChars (SqlStreamChars s) + { + notNull = true; + } + + [MonoTODO] + public SqlChars (SqlString value) + { + notNull = true; + } + + [MonoTODO] + public SqlChars (IntPtr ptrBuffer, long length) + { + notNull = true; + } + + #endregion + + #region Properties + + public bool IsNull { + get { return !notNull; } + } + + #endregion + + #region Methods + + [MonoTODO] + XmlSchema IXmlSerializable.GetSchema () + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.ReadXml (XmlReader reader) + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.WriteXml (XmlWriter writer) + { + throw new NotImplementedException (); + } + + #endregion + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlDate.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlDate.cs new file mode 100644 index 00000000000..4bb65c74aae --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlTypes/SqlDate.cs @@ -0,0 +1,92 @@ +// +// System.Data.SqlTypes.SqlDate +// +// Author: +// Tim Coleman <tim@timcoleman.com> +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System; +using System.Globalization; +using System.Xml; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace System.Data.SqlTypes +{ + [MonoTODO] + public struct SqlDate : INullable, IComparable, IXmlSerializable + { + #region Fields + + public static readonly SqlDate MaxValue; + public static readonly SqlDate MinValue; + + bool notNull; + + #endregion + + #region Constructors + + [MonoTODO] + public SqlDate (int years, int months, int days) + { + notNull = true; + } + + [MonoTODO] + public SqlDate (int years, int months, int days, Calendar calendar) + { + notNull = true; + } + + #endregion + + #region Properties + + public bool IsNull { + get { return !notNull; } + } + + #endregion + + #region Methods + + public int CompareTo (object value) + { + if (value == null) + return 1; + else if (!(value is SqlDate)) + throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlDate")); + else if (((SqlDate)value).IsNull) + return 1; + else + throw new NotImplementedException (); + } + + [MonoTODO] + XmlSchema IXmlSerializable.GetSchema () + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.ReadXml (XmlReader reader) + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.WriteXml (XmlWriter writer) + { + throw new NotImplementedException (); + } + + #endregion + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlStreamChars.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlStreamChars.cs new file mode 100644 index 00000000000..742e7251f26 --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlTypes/SqlStreamChars.cs @@ -0,0 +1,67 @@ +// +// System.Data.SqlTypes.SqlStreamChars +// +// Author: +// Tim Coleman <tim@timcoleman.com> +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System; +using System.Globalization; +using System.Xml.Serialization; + +namespace System.Data.SqlTypes +{ + [MonoTODO] + public abstract class SqlStreamChars : INullable, IDisposable + { + #region Fields + + public static readonly SqlStreamChars Null; + + bool notNull; + + #endregion + + #region Constructors + + protected SqlStreamChars () + { + notNull = true; + } + + #endregion + + #region Properties + + public abstract bool CanRead { get; } + public abstract bool CanSeek { get; } + public abstract bool CanWrite { get; } + public abstract bool IsNull { get; } + public abstract long Length { get; } + public abstract long Position { get; } + + #endregion + + #region Methods + + [MonoTODO] + protected virtual void Dispose (bool disposing) + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IDisposable.Dispose () + { + throw new NotImplementedException (); + } + + #endregion + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlTime.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlTime.cs new file mode 100644 index 00000000000..d549f43644d --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlTypes/SqlTime.cs @@ -0,0 +1,92 @@ +// +// System.Data.SqlTypes.SqlTime +// +// Author: +// Tim Coleman <tim@timcoleman.com> +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System; +using System.Globalization; +using System.Xml; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace System.Data.SqlTypes +{ + [MonoTODO] + public struct SqlTime : INullable, IComparable, IXmlSerializable + { + #region Fields + + public static readonly SqlTime MaxValue; + public static readonly SqlTime MinValue; + + bool notNull; + + #endregion + + #region Constructors + + [MonoTODO] + public SqlTime (long tickCount) + { + notNull = true; + } + + [MonoTODO] + public SqlTime (int hours, int minutes, int seconds, int milliseconds) + { + notNull = true; + } + + #endregion + + #region Properties + + public bool IsNull { + get { return !notNull; } + } + + #endregion + + #region Methods + + public int CompareTo (object value) + { + if (value == null) + return 1; + else if (!(value is SqlTime)) + throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlTime")); + else if (((SqlTime)value).IsNull) + return 1; + else + throw new NotImplementedException (); + } + + [MonoTODO] + XmlSchema IXmlSerializable.GetSchema () + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.ReadXml (XmlReader reader) + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.WriteXml (XmlWriter writer) + { + throw new NotImplementedException (); + } + + #endregion + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlUtcDateTime.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlUtcDateTime.cs new file mode 100644 index 00000000000..1c3ea55ba3b --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlTypes/SqlUtcDateTime.cs @@ -0,0 +1,98 @@ +// +// System.Data.SqlTypes.SqlUtcDateTime +// +// Author: +// Tim Coleman <tim@timcoleman.com> +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System; +using System.Globalization; +using System.Xml; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace System.Data.SqlTypes +{ + [MonoTODO] + public struct SqlUtcDateTime : INullable, IComparable, IXmlSerializable + { + #region Fields + + public static readonly SqlUtcDateTime MaxValue; + public static readonly SqlUtcDateTime MinValue; + + bool notNull; + + #endregion + + #region Constructors + + [MonoTODO] + public SqlUtcDateTime (long tickCount) + { + notNull = true; + } + + [MonoTODO] + public SqlUtcDateTime (int years, int months, int days) + { + notNull = true; + } + + [MonoTODO] + public SqlUtcDateTime (int years, int months, int days, int hours, int minutes, int seconds, int milliseconds) + { + notNull = true; + } + + #endregion + + #region Properties + + public bool IsNull { + get { return !notNull; } + } + + #endregion + + #region Methods + + public int CompareTo (object value) + { + if (value == null) + return 1; + else if (!(value is SqlUtcDateTime)) + throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlUtcDateTime")); + else if (((SqlUtcDateTime)value).IsNull) + return 1; + else + throw new NotImplementedException (); + } + + [MonoTODO] + XmlSchema IXmlSerializable.GetSchema () + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.ReadXml (XmlReader reader) + { + throw new NotImplementedException (); + } + + [MonoTODO] + void IXmlSerializable.WriteXml (XmlWriter writer) + { + throw new NotImplementedException (); + } + + #endregion + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.SqlTypes/SqlXmlReader.cs b/mcs/class/System.Data/System.Data.SqlTypes/SqlXmlReader.cs new file mode 100644 index 00000000000..de9c5bb3df0 --- /dev/null +++ b/mcs/class/System.Data/System.Data.SqlTypes/SqlXmlReader.cs @@ -0,0 +1,65 @@ +// +// System.Data.SqlTypes.SqlXmlReader +// +// Author: +// Tim Coleman <tim@timcoleman.com> +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System; +using System.Globalization; +using System.Xml; + +namespace System.Data.SqlTypes +{ + [MonoTODO] + public struct SqlXmlReader : INullable, IComparable + { + #region Fields + + public static readonly SqlXmlReader Null; + + bool notNull; + + #endregion + + #region Constructors + + [MonoTODO] + public SqlXmlReader (XmlReader value) + { + notNull = true; + } + + #endregion + + #region Properties + + public bool IsNull { + get { return !notNull; } + } + + #endregion + + #region Methods + + public int CompareTo (object value) + { + if (value == null) + return 1; + else if (!(value is SqlXmlReader)) + throw new ArgumentException (Locale.GetText ("Value is not a System.Data.SqlTypes.SqlXmlReader")); + else if (((SqlXmlReader)value).IsNull) + return 1; + else + throw new NotImplementedException (); + } + + #endregion + } +} + +#endif |