IBX.IBCustomDataSet.TIBCustomDataSet.ApplyUpdates

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ApplyUpdates;

C++

void __fastcall ApplyUpdates();

Properties

Type Visibility Source Unit Parent
procedure
function
public
IBX.IBCustomDataSet.pas
IBX.IBCustomDataSet.hpp
IBX.IBCustomDataSet TIBCustomDataSet

Description

Writes a dataset's pending cached updates to the database.

Call ApplyUpdates to write a dataset's pending cached updates to a database. This method passes cached data to the database for storage, but the changes are not committed to the database. An application must explicitly call the TIBTransaction component's Commit method to commit the changes to the database if the write is successful, or call the TIBTransaction component's Rollback method to undo the changes if there is an error.

Note: The preferred method for updating datasets is to call a database component's ApplyUpdates method rather than to call each individual dataset's ApplyUpdates method. The application is responsible for committing or rolling back the transaction.