DB2 Version 10.1 for Linux, UNIX, and Windows

DB2DataAdapter Members

DB2DataAdapter overview

Public Constructors

Name Description
public constructor DB2®DataAdapter Overloaded. Initializes a new instance of the DB2DataAdapter class.

Public Properties

Name Description
public property AcceptChangesDuringFill (inherited from DataAdapter) Gets or sets a value indicating whether AcceptChanges is called on a DataRow after it is added to the DataTable.
public property Container (inherited from Component) Gets the IContainer that contains the Component.
public property ContinueUpdateOnError (inherited from DataAdapter) Gets or sets a value that specifies whether to generate an exception, or the row in error when an error is encountered during a row update.
public property DeleteCommand Gets or sets an SQL statement or stored procedure used to delete records in the database.
public property InsertCommand Gets or sets an SQL statement or stored procedure used to insert new records into the database.
public property MissingMappingAction (inherited from DataAdapter) Determines the action to take when incoming data does not have a matching table or column.
public property MissingSchemaAction (inherited from DataAdapter) Determines the action to take when existing DataSet schema does not match incoming data.
public property SelectCommand Gets or sets an SQL statement or stored procedure used to select records in the database.
public property Site (inherited from Component) Gets or sets the ISite of the Component.
public property TableMappings (inherited from DataAdapter) Gets a collection that provides the master mapping between a source table and a DataTable.
public property UpdateBatchSize Overloaded. Gets or sets the number of commands in a batch to be sent to the database server for execution.
public property UpdateCommand Gets or sets an SQL statement or stored procedure used to update records in the database.

Public Methods

Name Description
public method CreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public method Dispose (inherited from Component) Overloaded. Releases the resources used by the Component.
public method Equals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public method Fill (inherited from DbDataAdapter) Overloaded. Overridden. Adds or refreshes rows in the DataSet to match those in the database.
public method FillSchema (inherited from DbDataAdapter) Overloaded. Overridden. Adds a DataTable to a DataSet and configures the schema to match that in the database.
public method GetFillParameters (inherited from DbDataAdapter) Overridden. Gets the parameters set by the user when executing an SQL SELECT statement.
public method GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public method GetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public method GetType (inherited from Object) Gets the Type of the current instance.
public method InitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public method ToString (inherited from Object) Returns a String that represents the current Object.
public method Update (inherited from DbDataAdapter) Overloaded. Calls the INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the DataSet.

Public Events

Name Description
public event Disposed (inherited from Component) Overloaded. Adds an event handler to listen to the Disposed event on the component.
public event FillError (inherited from DbDataAdapter) Returned when an error occurs during a fill operation.
public event RowUpdated Occurs during an update operation after a command is executed against the database.
public event RowUpdating Occurs during Update before a command is executed against the database.

Protected Properties

Name Description
protected property DesignMode (inherited from Component) Gets a value that indicates whether the Component is currently in design mode.
protected property Events (inherited from Component) Gets the list of event handlers that are attached to this Component.

Protected Methods

Name Description
protected method AddToBatch (inherited from DbDataAdapter) Adds a IDbCommand to the current batch.
protected method ClearBatch (inherited from DbDataAdapter) Removes all IDbCommand objects from the batch.
protected method CloneInternals (inherited from DataAdapter) Creates a copy of this instance of DataAdapter.
protected method CreateRowUpdatedEvent Overridden. Initializes a new instance of the RowUpdatedEventArgs class, regardless of whether the update is successful.
protected method CreateRowUpdatingEvent Overridden. Initializes a new instance of the RowUpdatingEventArgs class.
protected method CreateTableMappings (inherited from DataAdapter) Creates a new DataTableMappingCollection.
protected method Dispose (inherited from DbDataAdapter) Overloaded. Releases the resources used by the Component.
protected method ExecuteBatch (inherited from DbDataAdapter) Executes the current batch.
protected method Fill (inherited from DbDataAdapter) Overloaded. Overridden. Adds or refreshes rows in the DataSet to match those in the database.
protected method FillSchema (inherited from DbDataAdapter) Overloaded. Overridden. Adds a DataTable to a DataSet and configures the schema to match that in the database.
protected method Finalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and Microsoft(R) Visual C++(R), finalizers are expressed using destructor syntax.

protected method GetBatchedParameter (inherited from DbDataAdapter) Returns a IDataParameter from one of the commands in the current batch.
protected method GetService (inherited from Component) Returns an object that represents a service provided by the Component or by its Container.
protected method InitializeBatching (inherited from DbDataAdapter) Initializes batching for the DbDataAdapter.
protected method MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
protected method OnFillError (inherited from DbDataAdapter) Raises the FillError event.
protected method OnRowUpdated Overridden. Raises the RowUpdated event using a RowUpdatedEventArgs object.
protected method OnRowUpdating Overridden. Raises the RowUpdating event using a RowUpdatingEventArgs object, whether or not the update operation is successful.
protected method ShouldSerializeTableMappings (inherited from DataAdapter) Determines whether one or more DataTableMapping objects exist and they should be persisted.
protected method TerminateBatching (inherited from DbDataAdapter) Ends batching for the DbDataAdapter.