Attempts to apply all cached updates in the database.

Syntax

<oRef>.applyUpdates( )

<oRef>

The database whose cached updates you want to apply.

Property of

Database

Description

The applyUpdates( ) method attempts to apply all changes to a database that have been cached and returns true or false to indicate success or failure. If it succeeds, all cached updates are cleared; if it fails, the updates remain cached. Since the applyUpdates( ) method uses a transaction while attempting to apply the changes and you cannot nest transactions in a database, cached updates and transaction logging with beginTrans( ) are mutually exclusive. See cacheUpdates for more information on caching updates.

Changes to the current row that have not been written are still in the row buffer, and have not been cached. To apply changes made to the row buffer, call the rowset’s save( ) method before you call applyUpdates( ).