diff options
author | Tim Coleman <tim@mono-cvs.ximian.com> | 2003-12-22 05:42:45 +0300 |
---|---|---|
committer | Tim Coleman <tim@mono-cvs.ximian.com> | 2003-12-22 05:42:45 +0300 |
commit | bc861eafad858d125b392d84f79cc22785b91570 (patch) | |
tree | fd6601fb50d218fa4f8668b3f3140a157a66dbd1 /mcs/class/System.Data/System.Data.ProviderBase | |
parent | 7cd75f4218c306d4e49ac665df62b7d800293352 (diff) |
2003-12-21 Tim Coleman <tim@timcoleman.com>
* DbConnectionBase.cs DbConnectionFactory.cs DbConnectionInternal.cs
* DbConnectionPoolCounters.cs DbConnectionPoolOptions.cs
* DbDataReaderBase.cs DbMetaDataFactory.cs DbParameterBase.cs
* DbParameterCollectionBase.cs DbReferenceCollection.cs:
New stubs added
svn path=/trunk/mcs/; revision=21410
Diffstat (limited to 'mcs/class/System.Data/System.Data.ProviderBase')
11 files changed, 1431 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog b/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog index 731892fe19d..d2e202fc3d6 100755 --- a/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog +++ b/mcs/class/System.Data/System.Data.ProviderBase/ChangeLog @@ -1,3 +1,10 @@ +2003-12-21 Tim Coleman <tim@timcoleman.com> + * DbConnectionBase.cs DbConnectionFactory.cs DbConnectionInternal.cs + * DbConnectionPoolCounters.cs DbConnectionPoolOptions.cs + * DbDataReaderBase.cs DbMetaDataFactory.cs DbParameterBase.cs + * DbParameterCollectionBase.cs DbReferenceCollection.cs: + New stubs added + 2003-12-19 Tim Coleman <tim@timcoleman.com> * DbCommandBase.cs: New stub added diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs new file mode 100644 index 00000000000..efdc3b9db77 --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionBase.cs @@ -0,0 +1,162 @@ +// +// System.Data.ProviderBase.DbConnectionBase +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Data.Common; +using System.EnterpriseServices; + +namespace System.Data.ProviderBase { + public abstract class DbConnectionBase : DbConnection + { + #region Fields + + #endregion // Fields + + #region Constructors + + [MonoTODO] + protected DbConnectionBase (DbConnectionBase connection) + { + } + + [MonoTODO] + protected DbConnectionBase (DbConnectionFactory connectionFactory) + { + } + + #endregion // Constructors + + #region Properties + + [MonoTODO] + protected int CloseCount { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected internal DbConnectionFactory ConnectionFactory { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected internal DbConnectionString ConnectionOptions { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override string ConnectionString { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override int ConnectionTimeout { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected virtual int ConnectionTimeoutInternal { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override string Database { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override string DataSource { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected internal DbConnectionInternal InnerConnection { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override string ServerVersion { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override ConnectionState State { + get { throw new NotImplementedException (); } + } + + #endregion // Properties + + #region Events + + public event StateChangeEventHandler StateChange; + + #endregion // Events + + #region Methods + + [MonoTODO] + protected override DbTransaction BeginDbTransaction (IsolationLevel isolationLevel) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void ChangeDatabase (string value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void Close () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected override DbCommand CreateDbCommand () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected override void Dispose (bool disposing) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void EnlistDistributedTransaction (ITransaction transaction) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual DbMetaDataFactory GetMetaDataFactory (DbConnectionInternal internalConnection) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected void OnStateChange (ConnectionState originalState, ConnectionState currentState) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void Open () + { + throw new NotImplementedException (); + } + + #endregion // Methods + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionFactory.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionFactory.cs new file mode 100644 index 00000000000..08f9e490674 --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionFactory.cs @@ -0,0 +1,93 @@ +// +// System.Data.ProviderBase.DbConnectionFactory +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Data.Common; + +namespace System.Data.ProviderBase { + public abstract class DbConnectionFactory + { + #region Fields + + #endregion // Fields + + #region Constructors + + [MonoTODO] + protected DbConnectionFactory () + { + } + + [MonoTODO] + protected DbConnectionFactory (DbConnectionPoolCounters performanceCounters) + { + } + + #endregion // Constructors + + #region Properties + + public abstract DbProviderFactory ProviderFactory { get; } + + #endregion // Properties + + #region Methods + + [MonoTODO] + protected virtual IAsyncResult BeginCreateConnection (DbConnectionBase owningObject, DbConnectionString connectionOptions, DbConnectionInternal connection, AsyncCallback callback, object asyncStateObject) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public void ClearAllPools () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public void ClearPool (DbConnectionBase connection) + { + throw new NotImplementedException (); + } + + protected abstract DbConnectionInternal CreateConnection (DbConnectionString options, DbConnectionBase owningObject); + protected abstract DbConnectionString CreateConnectionOptions (string connectionString); + protected abstract DbConnectionPoolOptions CreateConnectionPoolOptions (DbConnectionString options); + + [MonoTODO] + protected virtual DbMetaDataFactory CreateMetaDataFactory (DbConnectionInternal internalConnection) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual DbConnectionInternal EndCreateConnection (IAsyncResult asyncResult) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected internal DbMetaDataFactory GetMetaDataFactory (DbConnectionString connectionOptions, DbConnectionInternal internalConnection) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public void SetConnectionPoolOptions (string connectionString, DbConnectionPoolOptions poolOptions) + { + throw new NotImplementedException (); + } + + #endregion // Methods + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionInternal.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionInternal.cs new file mode 100644 index 00000000000..ee3206b57d0 --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionInternal.cs @@ -0,0 +1,145 @@ +// +// System.Data.ProviderBase.DbConnectionInternal +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Data.Common; +using System.EnterpriseServices; + +namespace System.Data.ProviderBase { + public abstract class DbConnectionInternal + { + #region Fields + + #endregion // Fields + + #region Constructors + + [MonoTODO] + protected DbConnectionInternal () + { + } + + #endregion // Constructors + + #region Properties + + [MonoTODO] + protected bool IsEnlistedInDistributedTransaction { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected internal object Owner { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected internal DbReferenceCollection ReferenceCollection { + get { throw new NotImplementedException (); } + } + + public abstract string ServerVersion { get; } + + [MonoTODO] + public virtual string ServerVersionNormalized { + get { throw new NotImplementedException (); } + } + + public abstract ConnectionState State { get; } + + #endregion // Properties + + #region Methods + + protected abstract void Activate (bool isInTransaction); + + [MonoTODO] + protected virtual IAsyncResult BeginOpen (DbConnectionBase outerConnection, AsyncCallback callback, object asyncStateObject) + { + throw new NotImplementedException (); + } + + public abstract DbTransaction BeginTransaction (IsolationLevel il); + + [MonoTODO] + public virtual void ChangeDatabase (string value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual void Close () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual DbReferenceCollection CreateReferenceCollection () + { + throw new NotImplementedException (); + } + + protected abstract void Deactivate (); + + [MonoTODO] + public void Dispose () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual void Dispose (bool disposing) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected internal void DoomThisConnection () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual void EndOpen (DbConnectionBase outerConnection, IAsyncResult asyncResult) + { + throw new NotImplementedException (); + } + + public abstract void EnlistDistributedTransaction (ITransaction transaction); + + [MonoTODO] + protected virtual DataTable GetSchemaInternal (DbConnectionBase outerConnection, string collectionName, string[] restrictions) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual void Open (DbConnectionBase outerConnection) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected void PurgeWeakReferences () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected internal void SetDistributedTransaction (ITransaction transaction, bool manualEnlistment) + { + throw new NotImplementedException (); + } + + #endregion // Methods + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionPoolCounters.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionPoolCounters.cs new file mode 100644 index 00000000000..6c7f2772ed1 --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionPoolCounters.cs @@ -0,0 +1,44 @@ +// +// System.Data.ProviderBase.DbConnectionPoolCounters +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Data.Common; + +namespace System.Data.ProviderBase { + public abstract class DbConnectionPoolCounters + { + #region Constructors + + [MonoTODO] + protected DbConnectionPoolCounters () + { + } + + #endregion // Constructors + + #region Methods + + [MonoTODO] + public virtual void Dispose () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected void InitCounters () + { + throw new NotImplementedException (); + } + + #endregion // Methods + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionPoolOptions.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionPoolOptions.cs new file mode 100644 index 00000000000..d02cccf39b4 --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbConnectionPoolOptions.cs @@ -0,0 +1,84 @@ +// +// System.Data.ProviderBase.DbConnectionPoolOptions +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Data.Common; + +namespace System.Data.ProviderBase { + public sealed class DbConnectionPoolOptions + { + #region Fields + + bool poolByIdentity; + int creationTimeout; + bool hasTransactionAffinity; + int loadBalanceTimeout; + int maxPoolSize; + int minPoolSize; + bool useDeactivateQueue; + + #endregion // Fields + + #region Constructors + + [MonoTODO] + public DbConnectionPoolOptions (bool poolByIdentity, int minPoolSize, int maxPoolSize, int creationTimeout, int loadBalanceTimeout, bool hasTransactionAffinity, bool useDeactivateQueue) + { + this.poolByIdentity = poolByIdentity; + this.minPoolSize = minPoolSize; + this.maxPoolSize = maxPoolSize; + this.creationTimeout = creationTimeout; + this.loadBalanceTimeout = loadBalanceTimeout; + this.hasTransactionAffinity = hasTransactionAffinity; + this.useDeactivateQueue = useDeactivateQueue; + } + + #endregion // Constructors + + #region Properties + + public int CreationTimeout { + get { return creationTimeout; } + } + + public bool HasTransactionAffinity { + get { return hasTransactionAffinity; } + } + + public int LoadBalanceTimeout { + get { return loadBalanceTimeout; } + } + + public int MaxPoolSize { + get { return maxPoolSize; } + } + + public int MinPoolSize { + get { return minPoolSize; } + } + + public bool PoolByIdentity { + get { return poolByIdentity; } + } + + public bool UseDeactivateQueue { + get { return useDeactivateQueue; } + } + + [MonoTODO] + public bool UseLoadBalancing { + get { throw new NotImplementedException (); } + } + + #endregion // Properties + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbDataReaderBase.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbDataReaderBase.cs new file mode 100644 index 00000000000..2deeb64208c --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbDataReaderBase.cs @@ -0,0 +1,283 @@ +// +// System.Data.ProviderBase.DbDataReaderBase +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Collections; +using System.Data.Common; +using System.Runtime.InteropServices; + +namespace System.Data.ProviderBase { + public abstract class DbDataReaderBase : DbDataReader + { + #region Fields + + CommandBehavior behavior; + + #endregion // Fields + + #region Constructors + + protected DbDataReaderBase (CommandBehavior behavior) + { + this.behavior = behavior; + } + + #endregion // Constructors + + #region Properties + + protected CommandBehavior CommandBehavior { + get { return behavior; } + } + + [MonoTODO] + public override int Depth { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override int FieldCount { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override bool HasRows { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override bool IsClosed { + get { throw new NotImplementedException (); } + } + + protected abstract bool IsValidRow { get; } + + [MonoTODO] + public override object this [[Optional] int index] { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override object this [[Optional] string columnName] { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override int RecordsAffected { + get { throw new NotImplementedException (); } + } + + #endregion // Properties + + #region Methods + + [MonoTODO] + protected void AssertReaderHasColumns () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected void AssertReaderHasData () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected void AssertReaderIsOpen (string methodName) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void Close () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected static DataTable CreateSchemaTable () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void Dispose () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual void FillSchemaTable (DataTable dataTable) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override bool GetBoolean (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override byte GetByte (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override long GetBytes (int ordinal, long fieldoffset, byte[] buffer, int bufferoffset, int length) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override char GetChar (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override long GetChars (int ordinal, long fieldoffset, char[] buffer, int bufferoffset, int length) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override string GetDataTypeName (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override DateTime GetDateTime (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override decimal GetDecimal (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override double GetDouble (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override IEnumerator GetEnumerator () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override Type GetFieldType (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override float GetFloat (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override Guid GetGuid (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override short GetInt16 (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override int GetInt32 (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override long GetInt64 (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override string GetName (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override int GetOrdinal (string name) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override DataTable GetSchemaTable () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override string GetString (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override object GetValue (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override int GetValues (object[] values) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected bool IsCommandBehavior (CommandBehavior condition) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override bool IsDBNull (int ordinal) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override bool NextResult () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override bool Read () + { + throw new NotImplementedException (); + } + + #endregion // Methods + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbMetaDataFactory.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbMetaDataFactory.cs new file mode 100644 index 00000000000..5b4b6c9324b --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbMetaDataFactory.cs @@ -0,0 +1,171 @@ +// +// System.Data.ProviderBase.DbMetaDataFactory +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Data.Common; +using System.IO; + +namespace System.Data.ProviderBase { + public class DbMetaDataFactory + { + #region Fields + + Stream xmlStream; + string serverVersion; + string serverVersionNormalized; + + #endregion // Fields + + #region Constructors + + [MonoTODO] + public DbMetaDataFactory (Stream XmlStream, string serverVersion, string serverVersionNormalized) + { + this.xmlStream = XmlStream; + this.serverVersion = serverVersion; + this.serverVersionNormalized = serverVersionNormalized; + } + + #endregion // Constructors + + #region Properties + + [MonoTODO] + protected DataSet CollectionDataSet { + get { throw new NotImplementedException (); } + } + + protected string ServerVersion { + get { return serverVersion; } + } + + protected string ServerVersionNormalized { + get { return serverVersionNormalized; } + } + + #endregion // Properties + + #region Methods + + [MonoTODO] + protected DataTable CloneAndFilterCollection (string collectionName, string[] hiddenColumnNames) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public void Dispose () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual void Dispose (bool disposing) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual DataTable GetSchema (DbConnection connection, DbConnectionInternal internalConnection, string collectionName, string[] restrictions) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual DataTable PrepareCollection (string collectionName, string[] restrictions, DbConnection connection, DbConnectionInternal internalConnection) + { + throw new NotImplementedException (); + } + + #endregion // Methods + + public class CollectionNames + { + #region Fields + + public const string DataSourceInformation = "DataSourceInformation"; + public const string DataTypes = "DataTypes"; + public const string MetaDataCollections = "MetaDataCollections"; + public const string ReservedWords = "ReservedWords"; + public const string Restrictions = "Restrictions"; + + #endregion // Fields + + #region Constructors + + [MonoTODO] + protected CollectionNames () + { + } + + #endregion // Constructors + } + + public class ColumnNames + { + #region Fields + + public const string CollectionName = "CollectionName"; + public const string ColumnSize = "ColumnSize"; + public const string CompositeIdentifierSeparatorPattern = "CompositeIdentifierSeparatorPattern"; + public const string CreateFormat = "CreateFormat"; + public const string CreateParameters = "CreateParameters"; + public const string DataSourceProductName = "DataSourceProductName"; + public const string DataSourceProductVersion = "DataSourceProductVersion"; + public const string DataSourceProductVersionNormalized = "DataSourceProductVersionNormalized"; + public const string DataType = "DataType"; + public const string GroupByBehavior = "GroupByBehavior"; + public const string IdentifierCase = "IdentifierCase"; + public const string IdentifierPattern = "IdentifierPattern"; + public const string IsAutoIncrementable = "IsAutoIncrementable"; + public const string IsBestMatch = "IsBestMatch"; + public const string IsCaseSensitive = "IsCaseSensitive"; + public const string IsFixedLength = "IsFixedLength"; + public const string IsFixedPrecisionScale = "IsFixedPrecisionScale"; + public const string IsLiteralSupported = "IsLiteralSupported"; + public const string IsLong = "IsLong"; + public const string IsNullable = "IsNullable"; + public const string IsSearchable = "IsSearchable"; + public const string IsSearchableWithLike = "IsSearchableWithLike"; + public const string IsUnsigned = "IsUnsigned"; + public const string LiteralPrefix = "LiteralPrefix"; + public const string LiteralSuffix = "LiteralSuffix"; + public const string MaximumScale = "MaximumScale"; + public const string MinimumScale = "MinimumScale"; + public const string NumberOfIdentifierParts = "NumberOfIdentifierParts"; + public const string NumberOfRestrictions = "NumberOfRestrictions"; + public const string OrderByColumnsInSelect = "OrderByColumnsInSelect"; + public const string ParameterMarkerFormat = "ParameterMarkerFormat"; + public const string ParameterMarkerPattern = "ParameterMarkerPattern"; + public const string ParameterNameMaxLength = "ParameterNameMaxLength"; + public const string ProviderDbType = "ProviderDbType"; + public const string QuotedIdentifierCase = "QuotedIdentifierCase"; + public const string QuotedIdentifierPattern = "QuotedIdentifierPattern"; + public const string ReservedWord = "ReservedWord"; + public const string SQLJoinSupport = "SQLJoinSupport"; + public const string StatementSeparatorPattern = "StatementSeparatorPattern"; + public const string StringLiteralPattern = "StringLiteralPattern"; + public const string TypeName = "TypeName"; + + #endregion // Fields + + #region Constructors + + [MonoTODO] + public ColumnNames () + { + } + + #endregion // Constructors + } + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbParameterBase.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbParameterBase.cs new file mode 100644 index 00000000000..9caa5d39dfe --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbParameterBase.cs @@ -0,0 +1,178 @@ +// +// System.Data.ProviderBase.DbParameterBase +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Data.Common; + +namespace System.Data.ProviderBase { + public abstract class DbParameterBase : DbParameter + { + #region Constructors + + [MonoTODO] + protected DbParameterBase () + { + } + + [MonoTODO] + protected DbParameterBase (DbParameterBase source) + { + } + + #endregion // Constructors + + #region Properties + + [MonoTODO] + protected object CoercedValue { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override ParameterDirection Direction { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override bool IsNullable { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override int Offset { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override string ParameterName { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override byte Precision { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override byte Scale { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override int Size { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override string SourceColumn { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override DataRowVersion SourceVersion { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public override object Value { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + #endregion // Properties + + #region Methods + + [MonoTODO] + public override void CopyTo (DbParameter destination) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public virtual void PropertyChanging () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected void ResetCoercedValue () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected void ResetScale () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected void SetCoercedValue () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected bool ShouldSerializePrecision () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected bool ShouldSerializeScale () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected bool ShouldSerializeSize () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override string ToString () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual byte ValuePrecision (object value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual byte ValueScale (object value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual byte ValueSize (object value) + { + throw new NotImplementedException (); + } + + #endregion // Methods + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs new file mode 100644 index 00000000000..46d562de441 --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs @@ -0,0 +1,189 @@ +// +// System.Data.ProviderBase.DbParameterCollectionBase +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Collections; +using System.Data.Common; + +namespace System.Data.ProviderBase { + public abstract class DbParameterCollectionBase : DbParameterCollection + { + #region Constructors + + [MonoTODO] + protected DbParameterCollectionBase () + { + } + + #endregion // Constructors + + #region Properties + + [MonoTODO] + public override int Count { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override bool IsFixedSize { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override bool IsReadOnly { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override bool IsSynchronized { + get { throw new NotImplementedException (); } + } + + protected abstract Type ItemType { get; } + + [MonoTODO] + protected virtual string ParameterNamePrefix { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + public override object SyncRoot { + get { throw new NotImplementedException (); } + } + + #endregion // Properties + + #region Methods + + [MonoTODO] + public override int Add (object value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void AddRange (Array values) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected override int CheckName (string parameterName) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void Clear () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override bool Contains (object value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override bool Contains (string value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void CopyTo (Array array, int index) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override IEnumerator GetEnumerator () + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected override DbParameter GetParameter (int index) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override int IndexOf (object value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override int IndexOf (string parameterName) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected internal static int IndexOf (IEnumerable itmes, string parameterName) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void Insert (int index, object value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual void OnChange () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void Remove (object value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void RemoveAt (int index) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public override void RemoveAt (string parameterName) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected override void SetParameter (int index, DbParameter value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual void Validate (int index, object value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected virtual void ValidateType (object value) + { + throw new NotImplementedException (); + } + + #endregion // Methods + } +} + +#endif diff --git a/mcs/class/System.Data/System.Data.ProviderBase/DbReferenceCollection.cs b/mcs/class/System.Data/System.Data.ProviderBase/DbReferenceCollection.cs new file mode 100644 index 00000000000..37f415de5f8 --- /dev/null +++ b/mcs/class/System.Data/System.Data.ProviderBase/DbReferenceCollection.cs @@ -0,0 +1,75 @@ +// +// System.Data.ProviderBase.DbReferenceCollection +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Collections; +using System.Data.Common; + +namespace System.Data.ProviderBase { + public abstract class DbReferenceCollection : IEnumerable + { + #region Constructors + + [MonoTODO] + protected DbReferenceCollection () + { + } + + #endregion // Constructors + + #region Methods + + [MonoTODO] + public void Add (object value) + { + throw new NotImplementedException (); + } + + public abstract void Add (object value, int tag); + + [MonoTODO] + protected void AddItem (object value, int tag) + { + Add (value, tag); + } + + [MonoTODO] + IEnumerator IEnumerable.GetEnumerator () + { + throw new NotImplementedException (); + } + + [MonoTODO] + public void Notify (int message, int tag, object connectionInternal) + { + throw new NotImplementedException (); + } + + protected abstract bool NotifyItem (int message, object value, int tag, object connectionInternal); + + [MonoTODO] + public void Purge () + { + throw new NotImplementedException (); + } + + public abstract void Remove (object value); + + [MonoTODO] + protected void RemoveItem (object value) + { + Remove (value); + } + + #endregion // Methods + } +} + +#endif |