ODAC

TCustomDADataSet.Lock Method

Locks the current record.

Class

TCustomDADataSet

Syntax

procedure Lock; virtual;

Remarks

Call the Lock method to lock the current record by executing the statement that is defined in the SQLLock property (for the TOraQuery component).

The Lock method sets the savepoint with the name LOCK_ + <component_name>.

TOraQuery uses SQLLock to execute the current record locking. TSmartQuery builds a SELECT FOR UPDATE statement itself.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback