From 7f47838587a7c8c4a9b0b583af496d892ee4e5e7 Mon Sep 17 00:00:00 2001 From: Christopher Podurgiel Date: Thu, 30 Aug 2001 08:03:12 +0000 Subject: [PATCH] Added Files. svn path=/trunk/mcs/; revision=683 --- mcs/class/System.Data/AcceptRejectRule.cs | 22 +++ mcs/class/System.Data/ChangeLog | 0 mcs/class/System.Data/ChangeLog.txt | 42 ++++++ mcs/class/System.Data/CommandBehavior.cs | 26 ++++ mcs/class/System.Data/CommandType.cs | 21 +++ mcs/class/System.Data/ConnectionState.cs | 26 ++++ .../DataColumnChangeEventHandler.cs | 17 +++ mcs/class/System.Data/DataRowAction.cs | 26 ++++ .../System.Data/DataRowChangeEventHandler.cs | 17 +++ mcs/class/System.Data/DataRowState.cs | 24 ++++ mcs/class/System.Data/DataRowVersion.cs | 22 +++ mcs/class/System.Data/DataViewRowState.cs | 27 ++++ mcs/class/System.Data/DbType.cs | 41 ++++++ .../System.Data/FillErrorEventHandler.cs | 17 +++ mcs/class/System.Data/IColumnMapping.cs | 37 +++++ .../System.Data/IColumnMappingCollection.cs | 47 +++++++ mcs/class/System.Data/IDataAdapter.cs | 63 +++++++++ mcs/class/System.Data/IDataParameter.cs | 77 +++++++++++ .../System.Data/IDataParameterCollection.cs | 39 ++++++ mcs/class/System.Data/IDataReader.cs | 56 ++++++++ mcs/class/System.Data/IDataRecord.cs | 126 ++++++++++++++++++ mcs/class/System.Data/IDbCommand.cs | 113 ++++++++++++++++ mcs/class/System.Data/IDbConnection.cs | 74 ++++++++++ mcs/class/System.Data/IDbDataAdapter.cs | 61 +++++++++ mcs/class/System.Data/IDbTransaction.cs | 33 +++++ mcs/class/System.Data/ITableMapping.cs | 45 +++++++ .../System.Data/ITableMappingCollection.cs | 47 +++++++ mcs/class/System.Data/IsolationLevel.cs | 26 ++++ mcs/class/System.Data/MappingType.cs | 22 +++ .../System.Data/MergeFailedEventHandler.cs | 17 +++ mcs/class/System.Data/MissingMappingAction.cs | 21 +++ mcs/class/System.Data/MissingSchemaAction.cs | 22 +++ mcs/class/System.Data/ParameterDirection.cs | 22 +++ mcs/class/System.Data/PropertyAttributes.cs | 24 ++++ mcs/class/System.Data/Rule.cs | 22 +++ mcs/class/System.Data/SchemaType.cs | 20 +++ mcs/class/System.Data/SqlDbType.cs | 42 ++++++ .../System.Data/StateChangeEventHandler.cs | 17 +++ mcs/class/System.Data/StatementType.cs | 22 +++ mcs/class/System.Data/UpdateRowSource.cs | 22 +++ mcs/class/System.Data/UpdateStatus.cs | 22 +++ mcs/class/System.Data/XmlReadMode.cs | 24 ++++ mcs/class/System.Data/XmlWriteMode.cs | 21 +++ mcs/class/System.Data/common.src | 0 mcs/class/System.Data/unix.src | 0 mcs/class/System.Data/windows.src | 0 46 files changed, 1512 insertions(+) create mode 100644 mcs/class/System.Data/AcceptRejectRule.cs create mode 100644 mcs/class/System.Data/ChangeLog create mode 100644 mcs/class/System.Data/ChangeLog.txt create mode 100644 mcs/class/System.Data/CommandBehavior.cs create mode 100644 mcs/class/System.Data/CommandType.cs create mode 100644 mcs/class/System.Data/ConnectionState.cs create mode 100644 mcs/class/System.Data/DataColumnChangeEventHandler.cs create mode 100644 mcs/class/System.Data/DataRowAction.cs create mode 100644 mcs/class/System.Data/DataRowChangeEventHandler.cs create mode 100644 mcs/class/System.Data/DataRowState.cs create mode 100644 mcs/class/System.Data/DataRowVersion.cs create mode 100644 mcs/class/System.Data/DataViewRowState.cs create mode 100644 mcs/class/System.Data/DbType.cs create mode 100644 mcs/class/System.Data/FillErrorEventHandler.cs create mode 100644 mcs/class/System.Data/IColumnMapping.cs create mode 100644 mcs/class/System.Data/IColumnMappingCollection.cs create mode 100644 mcs/class/System.Data/IDataAdapter.cs create mode 100644 mcs/class/System.Data/IDataParameter.cs create mode 100644 mcs/class/System.Data/IDataParameterCollection.cs create mode 100644 mcs/class/System.Data/IDataReader.cs create mode 100644 mcs/class/System.Data/IDataRecord.cs create mode 100644 mcs/class/System.Data/IDbCommand.cs create mode 100644 mcs/class/System.Data/IDbConnection.cs create mode 100644 mcs/class/System.Data/IDbDataAdapter.cs create mode 100644 mcs/class/System.Data/IDbTransaction.cs create mode 100644 mcs/class/System.Data/ITableMapping.cs create mode 100644 mcs/class/System.Data/ITableMappingCollection.cs create mode 100644 mcs/class/System.Data/IsolationLevel.cs create mode 100644 mcs/class/System.Data/MappingType.cs create mode 100644 mcs/class/System.Data/MergeFailedEventHandler.cs create mode 100644 mcs/class/System.Data/MissingMappingAction.cs create mode 100644 mcs/class/System.Data/MissingSchemaAction.cs create mode 100644 mcs/class/System.Data/ParameterDirection.cs create mode 100644 mcs/class/System.Data/PropertyAttributes.cs create mode 100644 mcs/class/System.Data/Rule.cs create mode 100644 mcs/class/System.Data/SchemaType.cs create mode 100644 mcs/class/System.Data/SqlDbType.cs create mode 100644 mcs/class/System.Data/StateChangeEventHandler.cs create mode 100644 mcs/class/System.Data/StatementType.cs create mode 100644 mcs/class/System.Data/UpdateRowSource.cs create mode 100644 mcs/class/System.Data/UpdateStatus.cs create mode 100644 mcs/class/System.Data/XmlReadMode.cs create mode 100644 mcs/class/System.Data/XmlWriteMode.cs create mode 100644 mcs/class/System.Data/common.src create mode 100644 mcs/class/System.Data/unix.src create mode 100644 mcs/class/System.Data/windows.src diff --git a/mcs/class/System.Data/AcceptRejectRule.cs b/mcs/class/System.Data/AcceptRejectRule.cs new file mode 100644 index 00000000000..9c94415da07 --- /dev/null +++ b/mcs/class/System.Data/AcceptRejectRule.cs @@ -0,0 +1,22 @@ +// +// System.Data.AcceptRejectRule.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + + /// + /// Determines the action that occurs when the AcceptChanges or RejectChanges method is invoked on a DataTable with a ForeignKeyConstraint. + /// + public enum AcceptRejectRule + { + Cascade, + None + } + +} \ No newline at end of file diff --git a/mcs/class/System.Data/ChangeLog b/mcs/class/System.Data/ChangeLog new file mode 100644 index 00000000000..e69de29bb2d diff --git a/mcs/class/System.Data/ChangeLog.txt b/mcs/class/System.Data/ChangeLog.txt new file mode 100644 index 00000000000..ef64a2bfb2f --- /dev/null +++ b/mcs/class/System.Data/ChangeLog.txt @@ -0,0 +1,42 @@ +2001-08-30 Christopher Podurgiel + *AcceptRejectRule.cs: Added + *CommandBehavior.cs: Added + *CommandType.cs: Added + *ConnectionState.cs: Added + *DataColumnChangeEventHandler.cs: Added + *DataRowAction.cs: Added + *DataRowChangeEventHandler.cs: Added + *DataRowState.cs: Added + *DataRowVersion.cs: Added + *DataViewRowState.cs: Added + *DbType.cs: Added + *FillErrorEventHandler.cs: Added + *IColumnMapping.cs: Added + *IColumnMappingCollection.cs: Added + *IDataAdapter.cs: Added + *IDataParameter.cs: Added + *IDataParameterCollection.cs: Added + *IDataReader.cs: Added + *IDataRecord.cs: Added + *IDbCommand.cs: Added + *IDbConnection.cs: Added + *IDbDataAdapter.cs: Added + *IDbTransaction.cs: Added + *IsolationLevel.cs: Added + *ITableMapping.cs: Added + *ITableMappingCollection.cs: Added + *MappingType.cs: Added + *MergeFailedEventHandler.cs: Added + *MissingMappingAction.cs: Added + *MissingSchemaAction.cs: Added + *ParameterDirection.cs: Added + *PropertyAttributes.cs: Added + *Rule.cs: Added + *SchemaType.cs: Added + *SqlDbType.cs: Added + *StateChangeEventHandler.cs: Added + *StatementType.cs: Added + *UpdateRowSource.cs: Added + *UpdateStatus.cs: Added + *XmlReadMode.cs: Added + *XmlWriteMode.cs: Added diff --git a/mcs/class/System.Data/CommandBehavior.cs b/mcs/class/System.Data/CommandBehavior.cs new file mode 100644 index 00000000000..d0f71d19efc --- /dev/null +++ b/mcs/class/System.Data/CommandBehavior.cs @@ -0,0 +1,26 @@ +// +// System.Data.CommandBehavior.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + + /// + /// Specifies a description of the results and the affect on the database of the query command. + /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. + /// + public enum CommandBehavior + { + CloseConnection, + KeyInfo, + SchemaOnly, + SequentialAccess, + SingleResult, + SingleRow + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/CommandType.cs b/mcs/class/System.Data/CommandType.cs new file mode 100644 index 00000000000..54d9ed4786b --- /dev/null +++ b/mcs/class/System.Data/CommandType.cs @@ -0,0 +1,21 @@ +// +// System.Data.CommandType.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies how a command string is interpreted. + /// + public enum CommandType + { + StoredProcedure, + TableDirect, + Text + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/ConnectionState.cs b/mcs/class/System.Data/ConnectionState.cs new file mode 100644 index 00000000000..9dded5170db --- /dev/null +++ b/mcs/class/System.Data/ConnectionState.cs @@ -0,0 +1,26 @@ +// +// System.Data.ConnectionState.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + + /// + /// Returns the current state of the connection to a data source. + /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. + /// + public enum ConnectionState + { + Broken, + Closed, + Connecting, + Executing, + Fetching, + Open + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/DataColumnChangeEventHandler.cs b/mcs/class/System.Data/DataColumnChangeEventHandler.cs new file mode 100644 index 00000000000..56e0a11ff2f --- /dev/null +++ b/mcs/class/System.Data/DataColumnChangeEventHandler.cs @@ -0,0 +1,17 @@ +// +// System.Data.DataColumnChangeEventHandler.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents the method that will handle the the ColumnChanging event. + /// + public delegate void DataColumnChangeEventHandler(object sender, DataColumnChangeEventArgs e); + +} \ No newline at end of file diff --git a/mcs/class/System.Data/DataRowAction.cs b/mcs/class/System.Data/DataRowAction.cs new file mode 100644 index 00000000000..5c5ce5b6d6a --- /dev/null +++ b/mcs/class/System.Data/DataRowAction.cs @@ -0,0 +1,26 @@ +// +// System.Data.DataRowAction.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Describes the action taken on a DataRow. + /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. + /// + public enum DataRowAction + { + Add, + Change, + Commit, + Delete, + Nothing, + Rollback + } + +} \ No newline at end of file diff --git a/mcs/class/System.Data/DataRowChangeEventHandler.cs b/mcs/class/System.Data/DataRowChangeEventHandler.cs new file mode 100644 index 00000000000..27bc694405e --- /dev/null +++ b/mcs/class/System.Data/DataRowChangeEventHandler.cs @@ -0,0 +1,17 @@ +// +// System.Data.DataRowChangeEventHandler.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents the method that will handle the RowChanging, RowChanged, RowDeleting, and RowDeleted events of a DataTable. + /// + public delegate void DataRowChangeEventHandler(object sender, DataRowChangeEventArgs e); + +} \ No newline at end of file diff --git a/mcs/class/System.Data/DataRowState.cs b/mcs/class/System.Data/DataRowState.cs new file mode 100644 index 00000000000..1c52f945416 --- /dev/null +++ b/mcs/class/System.Data/DataRowState.cs @@ -0,0 +1,24 @@ +// +// System.Data.DataRowState.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Gets the state of a DataRow object. + /// + public enum DataRowState + { + Added, + Deleted, + Detached, + Modified, + Unchanged + } + +} \ No newline at end of file diff --git a/mcs/class/System.Data/DataRowVersion.cs b/mcs/class/System.Data/DataRowVersion.cs new file mode 100644 index 00000000000..b738b086f93 --- /dev/null +++ b/mcs/class/System.Data/DataRowVersion.cs @@ -0,0 +1,22 @@ +// +// System.Data.DataRowVersion.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Describes the version of a DataRow. + /// + public enum DataRowVersion + { + Current, + Default, + Original, + Proposed + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/DataViewRowState.cs b/mcs/class/System.Data/DataViewRowState.cs new file mode 100644 index 00000000000..8bd78611ad2 --- /dev/null +++ b/mcs/class/System.Data/DataViewRowState.cs @@ -0,0 +1,27 @@ +// +// System.Data.DataViewRowState.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Describes the version of data in a DataRow. + /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. + /// + public enum DataViewRowState + { + Added, + CurrentRows, + Deleted, + ModifiedCurrent, + ModifiedOriginal, + None, + OriginalRows, + Unchanged + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/DbType.cs b/mcs/class/System.Data/DbType.cs new file mode 100644 index 00000000000..f6efc0cf6cb --- /dev/null +++ b/mcs/class/System.Data/DbType.cs @@ -0,0 +1,41 @@ +// +// System.Data.DbType.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Gets the data type of a field, a property, or a Parameter object of a .NET data provider. + /// + public enum DbType + { + AnsiString, + Binary, + Boolean, + Byte, + Currency, + Date, + DateTime, + Decimal, + Double, + Guid, + Int16, + Int32, + Int64, + Object, + SByte, + Single, + String, + Time, + UInt16, + UInt32, + UInt64, + VarNumeric + + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/FillErrorEventHandler.cs b/mcs/class/System.Data/FillErrorEventHandler.cs new file mode 100644 index 00000000000..adc2008b2d3 --- /dev/null +++ b/mcs/class/System.Data/FillErrorEventHandler.cs @@ -0,0 +1,17 @@ +// +// System.Data.FillErrorEventHandler.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents the method that will handle the FillError event. + /// + public delegate void FillErrorEventHandler(object sender, FillErrorEventArgs e); + +} \ No newline at end of file diff --git a/mcs/class/System.Data/IColumnMapping.cs b/mcs/class/System.Data/IColumnMapping.cs new file mode 100644 index 00000000000..3f7919cdd6e --- /dev/null +++ b/mcs/class/System.Data/IColumnMapping.cs @@ -0,0 +1,37 @@ +// +// System.Data.IColumnMapping.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Associates a data source column with a DataSet column, and is implemented by the DataColumnMapping class, which is used in common by .NET data providers. + /// + public interface IColumnMapping + { + string DataSetColumn + { + get + { + } + set + { + } + } + + string SourceColumn + { + get + { + } + set + { + } + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IColumnMappingCollection.cs b/mcs/class/System.Data/IColumnMappingCollection.cs new file mode 100644 index 00000000000..1ae2fbfd1b8 --- /dev/null +++ b/mcs/class/System.Data/IColumnMappingCollection.cs @@ -0,0 +1,47 @@ +// +// System.Data.IColumnMappingCollection.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Contains a collection of ColumnMapping objects, and is implemented by the DataColumnMappingCollection, which is used in common by .NET data providers. + /// + public interface IColumnMappingCollection : IList, ICollection, IEnumerable + { + IColumnMapping Add(string sourceColumnName, string dataSetColumnName) + { + } + + bool Contains(string sourceColumnName) + { + } + + IColumnMapping GetByDataSetColumn(string dataSetColumnName) + { + } + + int IndexOf(string sourceColumnName) + { + } + + void RemoveAt(string sourceColumnName) + { + } + + object this[string index] + { + get + { + } + set + { + } + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IDataAdapter.cs b/mcs/class/System.Data/IDataAdapter.cs new file mode 100644 index 00000000000..2e4010d80ea --- /dev/null +++ b/mcs/class/System.Data/IDataAdapter.cs @@ -0,0 +1,63 @@ +// +// System.Data.IDataAdapter.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Allows an object to implement a DataAdapter, and represents a set of methods and mapping action-related properties used to fill and refresh a DataSet and update a data source. + /// + public interface IDataAdapter + { + int Fill(DataSet dataSet) + { + } + + DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType) + { + } + + IDataParameter[] GetFillParameters(); + + int Update(DataSet dataSet) + { + } + + MissingMappingAction MissingMappingAction + { + get + { + } + set + { + } + } + + MissingSchemaAction MissingSchemaAction + { + get + { + } + set + { + } + } + + ITableMappingCollection TableMappings + { + get + { + } + set + { + } + } + + + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IDataParameter.cs b/mcs/class/System.Data/IDataParameter.cs new file mode 100644 index 00000000000..4fea04b684f --- /dev/null +++ b/mcs/class/System.Data/IDataParameter.cs @@ -0,0 +1,77 @@ +// +// System.Data.IDataParameter.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents a parameter to a Command object, and optionally, its mapping to DataSet columns; and is implemented by .NET data providers that access data sources. + /// + public interface IDataParameter + { + + DbType DbType + { + get + { + } + set + { + } + } + + ParameterDirection Direction + { + get + { + } + set + { + } + } + + bool IsNullable + { + get + { + } + } + + string ParameterName + { + get + { + } + set + { + } + } + + string SourceColumn + { + get + { + } + set + { + } + } + + DataRowVersion SourceVersion + { + get + { + } + set + { + } + } + + + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IDataParameterCollection.cs b/mcs/class/System.Data/IDataParameterCollection.cs new file mode 100644 index 00000000000..0d2fbe6c1a2 --- /dev/null +++ b/mcs/class/System.Data/IDataParameterCollection.cs @@ -0,0 +1,39 @@ +// +// System.Data.IDataParameterCollection.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Collects all parameters relevant to a Command object and their mappings to DataSet columns, and is implemented by .NET data providers that access data sources. + /// + public interface IDataParameterCollection : IList, ICollection, IEnumerable + { + void RemoveAt(string parameterName) + { + } + + int IndexOf(string parameterName) + { + } + + bool Contains(string parameterName) + { + } + + object this[string parameterName] + { + get + { + } + set + { + } + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IDataReader.cs b/mcs/class/System.Data/IDataReader.cs new file mode 100644 index 00000000000..8a91c649485 --- /dev/null +++ b/mcs/class/System.Data/IDataReader.cs @@ -0,0 +1,56 @@ +// +// System.Data.IDataReader.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Provides a means of reading one or more forward-only streams of result sets obtained by executing a command at a data source, and is implemented by .NET data providers that access relational databases. + /// + public interface IDataReader : IDataRecord + { + void Close() + { + } + + DataTable GetSchemaTable() + { + } + + bool NextResult() + { + } + + bool Read() + { + } + + int Depth + { + get + { + } + } + + bool IsClosed + { + get + { + } + } + + int RecordsAffected + { + get + { + } + } + + + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IDataRecord.cs b/mcs/class/System.Data/IDataRecord.cs new file mode 100644 index 00000000000..74177f56581 --- /dev/null +++ b/mcs/class/System.Data/IDataRecord.cs @@ -0,0 +1,126 @@ +// +// System.Data.IDataRecord.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Provides access to the column values within each row for a DataReader, and is implemented by .NET data providers that access relational databases. + /// + public interface IDataRecord + { + bool GetBoolean(int i) + { + } + + byte GetByte(int i) + { + } + + long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferOffset, int length) + { + } + + char GetChar(int i) + { + } + + long GetChars(int i, long fieldOffset, char[] buffer, int bufferOffset, int length) + { + } + + IDataReader GetDate(int i) + { + } + + string GetDataTypeName(int i) + { + } + + DateTime GetDateTime(int i) + { + } + + decimal GetDecimal(int i) + { + } + + double GetDouble(int i) + { + } + + Type GetFieldType(int i) + { + } + + float GetFloat(int i) + { + } + + Guid GetGuid(int i) + { + } + + short GetInt16(int i) + { + } + + int GetInt32(int i) + { + } + + long GetInt64(int i) + { + } + + string GetName(int i) + { + } + + int GetOrdinal(string name) + { + } + + string GetString(int i) + { + } + + object GetValue(int i) + { + } + + int GetValues(object[] values) + { + } + + bool IsDBNull(int i) + { + } + + int FieldCount + { + get + { + } + } + + object this[string name] + { + get + { + } + } + + object this[int i] + { + get + { + } + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IDbCommand.cs b/mcs/class/System.Data/IDbCommand.cs new file mode 100644 index 00000000000..3838c5b9682 --- /dev/null +++ b/mcs/class/System.Data/IDbCommand.cs @@ -0,0 +1,113 @@ +// +// System.Data.IDBCommand.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents a SQL statement that is executed while connected to a data source, and is implemented by .NET data providers that access relational databases. + /// + public interface IDBCommand + { + void Cancel() + { + } + + IDataParameter CreateParameter() + { + } + + int ExecuteNonQuery() + { + } + + IDataReader ExecuteReader() + { + } + + IDataReader ExecuteReader(CommandBehavior behavior) + { + } + + object ExecuteScalar() + { + } + + void Prepare() + { + } + + + string CommandText + { + get + { + } + set + { + } + } + + int CommandTimeout + { + get + { + } + set + { + } + } + + CommandTpe CommandType + { + get + { + } + set + { + } + } + + IDbConnection Connection + { + get + { + } + set + { + } + } + + IDataParameterCollection Parameters + { + get + { + } + } + + IDbTransaction Transaction + { + get + { + } + set + { + } + } + + UpdateRowSource UpdatedRowSource + { + get + { + } + set + { + } + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IDbConnection.cs b/mcs/class/System.Data/IDbConnection.cs new file mode 100644 index 00000000000..764c87e6617 --- /dev/null +++ b/mcs/class/System.Data/IDbConnection.cs @@ -0,0 +1,74 @@ +// +// System.Data.IDBConnection.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents an open connection to a data source, and is implemented by .NET data providers that access relational databases. + /// + public interface IDBConnection + { + IDbTransaction BeginTransaction() + { + } + + IDbTransaction BeginTransaction(IsolationLevel il) + { + } + + void ChangeDatabase(string databaseName) + { + } + + void Close() + { + } + + IDbCommand CreateCommand() + { + } + + void Open() + { + } + + + string ConnectionString + { + get + { + } + set + { + } + } + + int ConnectionTimeout + { + get + { + } + } + + string Database + { + get + { + } + } + + ConnectionState State + { + get + { + } + } + + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IDbDataAdapter.cs b/mcs/class/System.Data/IDbDataAdapter.cs new file mode 100644 index 00000000000..2c798951d5b --- /dev/null +++ b/mcs/class/System.Data/IDbDataAdapter.cs @@ -0,0 +1,61 @@ +// +// System.Data.IDbDataAdapter.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents a set of command-related properties that are used to fill the DataSet and update a data source, and is implemented by .NET data providers that access relational databases. + /// + public interface IDbDataAdapter : IDataAdapter + { + + IDbCommand DeleteCommand + { + get + { + } + set + { + } + } + + IDbCommand InsertCommand + { + get + { + } + set + { + } + } + + IDbCommand SelectCommand + { + get + { + } + set + { + } + } + + IDbCommand UpdateCommand + { + get + { + } + set + { + } + } + + + + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IDbTransaction.cs b/mcs/class/System.Data/IDbTransaction.cs new file mode 100644 index 00000000000..1af31cdf0cd --- /dev/null +++ b/mcs/class/System.Data/IDbTransaction.cs @@ -0,0 +1,33 @@ +// +// System.Data.IDbTransaction.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents a transaction to be performed at a data source, and is implemented by .NET data providers that access relational databases. + /// + public interface IDbTransaction + { + + void Commit() + { + } + + void Rollback() + { + } + + IsolationLevel IsolationLevel + { + get + { + } + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/ITableMapping.cs b/mcs/class/System.Data/ITableMapping.cs new file mode 100644 index 00000000000..37bbc991a6b --- /dev/null +++ b/mcs/class/System.Data/ITableMapping.cs @@ -0,0 +1,45 @@ +// +// System.Data.ITableMapping.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Associates a source table with a table in a DataSet, and is implemented by the DataTableMapping class, which is used in common by .NET data providers. + /// + public interface ITableMapping + { + + IColumnMappingCollection ColumnMappings + { + get + { + } + } + + string DataSetTable + { + get + { + } + set + { + } + } + + string SourceTable + { + get + { + } + set + { + } + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/ITableMappingCollection.cs b/mcs/class/System.Data/ITableMappingCollection.cs new file mode 100644 index 00000000000..e1b091ce4ab --- /dev/null +++ b/mcs/class/System.Data/ITableMappingCollection.cs @@ -0,0 +1,47 @@ +// +// System.Data.ITableMappingCollection.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Contains a collection of TableMapping objects, and is implemented by the DataTableMappingCollection, which is used in common by .NET data providers. + /// + public interface ITableMappingCollection : IList, ICollection, IEnumerable + { + ITableMapping Add(string sourceTableName, string dataSetTableName) + { + } + + bool Contains(string sourceTableName) + { + } + + ITableMapping GetByDataSetTable(string dataSetTableName) + { + } + + int IndexOf(string sourceTableName) + { + } + + void RemoveAt(string sourceTableName) + { + } + + object this[string index] + { + get + { + } + set + { + } + } + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/IsolationLevel.cs b/mcs/class/System.Data/IsolationLevel.cs new file mode 100644 index 00000000000..6a880a83f75 --- /dev/null +++ b/mcs/class/System.Data/IsolationLevel.cs @@ -0,0 +1,26 @@ +// +// System.Data.IsolationLevel.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies the transaction locking behavior for the connection. + /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values. + /// + public enum IsolationLevel + { + Chaos, + ReadCommitted, + ReadUnCommitted, + RepeatableRead, + Serializable, + Unspecified + + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/MappingType.cs b/mcs/class/System.Data/MappingType.cs new file mode 100644 index 00000000000..4f65cf40c24 --- /dev/null +++ b/mcs/class/System.Data/MappingType.cs @@ -0,0 +1,22 @@ +// +// System.Data.MappingType.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies how a DataColumn is mapped. + /// + public enum MappingType + { + Attribute, + Element, + Hidden, + SimpleContent + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/MergeFailedEventHandler.cs b/mcs/class/System.Data/MergeFailedEventHandler.cs new file mode 100644 index 00000000000..318b761938a --- /dev/null +++ b/mcs/class/System.Data/MergeFailedEventHandler.cs @@ -0,0 +1,17 @@ +// +// System.Data.MergeFailedEventHandler.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents the method that will handle the MergeFailed event. + /// + public delegate void MergeFailedEventHandler(object sender, MergeFailedEventArgs e); + +} \ No newline at end of file diff --git a/mcs/class/System.Data/MissingMappingAction.cs b/mcs/class/System.Data/MissingMappingAction.cs new file mode 100644 index 00000000000..f6586b8a90b --- /dev/null +++ b/mcs/class/System.Data/MissingMappingAction.cs @@ -0,0 +1,21 @@ +// +// System.Data.MissingMappingAction.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Determines the action that occurs when a mapping is missing from a source table or a source column. + /// + public enum MissingMappingAction + { + Error, + Ignore, + Passthrough + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/MissingSchemaAction.cs b/mcs/class/System.Data/MissingSchemaAction.cs new file mode 100644 index 00000000000..9761b3414f2 --- /dev/null +++ b/mcs/class/System.Data/MissingSchemaAction.cs @@ -0,0 +1,22 @@ +// +// System.Data.MissingSchemaAction.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies the action to take when adding data to the DataSet and the required DataTable or DataColumn is missing. + /// + public enum MissingSchemaAction + { + Add, + AddWithKey, + Error, + Ignore + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/ParameterDirection.cs b/mcs/class/System.Data/ParameterDirection.cs new file mode 100644 index 00000000000..e7a8e67e4c9 --- /dev/null +++ b/mcs/class/System.Data/ParameterDirection.cs @@ -0,0 +1,22 @@ +// +// System.Data.ParameterDirection.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies the type of a parameter within a query relative to the DataSet. + /// + public enum ParameterDirection + { + Input, + InputOutput, + Output, + ReturnValue + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/PropertyAttributes.cs b/mcs/class/System.Data/PropertyAttributes.cs new file mode 100644 index 00000000000..9f2d3d06f03 --- /dev/null +++ b/mcs/class/System.Data/PropertyAttributes.cs @@ -0,0 +1,24 @@ +// +// System.Data.PropertyAttributes.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies the attributes of a property. + /// This enumeration has a FlagsAttribute that allows a bitwise combination of its member values + /// + public enum PropertyAttributes + { + NotSupported, + Optional, + Read, + Required, + Write + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/Rule.cs b/mcs/class/System.Data/Rule.cs new file mode 100644 index 00000000000..773f05b938f --- /dev/null +++ b/mcs/class/System.Data/Rule.cs @@ -0,0 +1,22 @@ +// +// System.Data.Rule.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Indicates the action that occurs when a ForeignKeyConstraint is enforced. + /// + public enum Rule + { + Cascade, + None, + SetDefault, + SetNull + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/SchemaType.cs b/mcs/class/System.Data/SchemaType.cs new file mode 100644 index 00000000000..96206e851f3 --- /dev/null +++ b/mcs/class/System.Data/SchemaType.cs @@ -0,0 +1,20 @@ +// +// System.Data.SchemaType.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies how to handle existing schema mappings when performing a FillSchema operation. + /// + public enum SchemaType + { + Mapped, + Source + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/SqlDbType.cs b/mcs/class/System.Data/SqlDbType.cs new file mode 100644 index 00000000000..e4fb25410d0 --- /dev/null +++ b/mcs/class/System.Data/SqlDbType.cs @@ -0,0 +1,42 @@ +// +// System.Data.SqlDbType.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies SQL Server data types. + /// + public enum SqlDbType + { + BigInt, + Binary, + Bit, + Char, + DateTime, + Decimal, + Float, + Image, + Int, + Money, + NChar, + NText, + NVarChar, + Real, + SmallDateTime, + SmallInt, + SmallMoney, + Text, + Timestamp, + TinyInt, + UniqueIdentifier, + VarBinary, + VarChar, + Variant + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/StateChangeEventHandler.cs b/mcs/class/System.Data/StateChangeEventHandler.cs new file mode 100644 index 00000000000..b8845b53642 --- /dev/null +++ b/mcs/class/System.Data/StateChangeEventHandler.cs @@ -0,0 +1,17 @@ +// +// System.Data.StateChangeEventHandler.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Represents the method that will handle the StateChange event. + /// + public delegate void StateChangeEventHandler(object sender, StateChangeEventArgs e); + +} \ No newline at end of file diff --git a/mcs/class/System.Data/StatementType.cs b/mcs/class/System.Data/StatementType.cs new file mode 100644 index 00000000000..301f89f7e91 --- /dev/null +++ b/mcs/class/System.Data/StatementType.cs @@ -0,0 +1,22 @@ +// +// System.Data.StatementType.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies the type of SQL query to be used by the OleDbRowUpdatedEventArgs, OleDbRowUpdatingEventArgs, SqlRowUpdatedEventArgs, or SqlRowUpdatingEventArgs class. + /// + public enum StatementType + { + Delete, + Insert, + Select, + Update + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/UpdateRowSource.cs b/mcs/class/System.Data/UpdateRowSource.cs new file mode 100644 index 00000000000..c854f2cf725 --- /dev/null +++ b/mcs/class/System.Data/UpdateRowSource.cs @@ -0,0 +1,22 @@ +// +// System.Data.UpdateRowSource.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies how query command results are applied to the row being updated. + /// + public enum UpdateRowSource + { + Both, + FirstReturnedRecord, + None, + OutputParameters + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/UpdateStatus.cs b/mcs/class/System.Data/UpdateStatus.cs new file mode 100644 index 00000000000..076d7084945 --- /dev/null +++ b/mcs/class/System.Data/UpdateStatus.cs @@ -0,0 +1,22 @@ +// +// System.Data.UpdateStatus.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies the action to take with regard to the current and remaining rows during an Update. + /// + public enum UpdateStatus + { + Continue, + ErrorsOccurred, + SkipAllRemainingRows, + SkipCurrentRow + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/XmlReadMode.cs b/mcs/class/System.Data/XmlReadMode.cs new file mode 100644 index 00000000000..fe04bbc732d --- /dev/null +++ b/mcs/class/System.Data/XmlReadMode.cs @@ -0,0 +1,24 @@ +// +// System.Data.XmlReadMode.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Specifies how to read XML data and a relational schema into a DataSet. + /// + public enum XmlReadMode + { + Auto, + DiffGram, + Fragment, + IgnoreSchema, + InferSchema, + ReadSchema + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/XmlWriteMode.cs b/mcs/class/System.Data/XmlWriteMode.cs new file mode 100644 index 00000000000..de1d0ad3786 --- /dev/null +++ b/mcs/class/System.Data/XmlWriteMode.cs @@ -0,0 +1,21 @@ +// +// System.Data.XmlWriteMode.cs +// +// Author: +// Christopher Podurgiel (cpodurgiel@msn.com) +// +// (C) Chris Podurgiel +// + +namespace System.Data +{ + /// + /// Use the members of this enumeration when setting the WriteMode parameter of the WriteXml method. + /// + public enum XmlWriteMode + { + DiffGram, + IgnoreSchema, + WriteSchema + } +} \ No newline at end of file diff --git a/mcs/class/System.Data/common.src b/mcs/class/System.Data/common.src new file mode 100644 index 00000000000..e69de29bb2d diff --git a/mcs/class/System.Data/unix.src b/mcs/class/System.Data/unix.src new file mode 100644 index 00000000000..e69de29bb2d diff --git a/mcs/class/System.Data/windows.src b/mcs/class/System.Data/windows.src new file mode 100644 index 00000000000..e69de29bb2d -- 2.25.1