ODAC

TOraQuery.LockMode Property

Used to specify what kind of lock will be performed when editing a record.

Class

TOraQuery

Syntax

property LockMode: TLockMode default lmNone;

Remarks

Use the LockMode property to define what kind of lock will be performed when editing a record. Locking a record is useful in creating multi-user applications. It prevents modification of a record by several users at the same time.

Locking is performed by the RefreshRecord method.

The default value is lmNone.

To set pessimistic locking use LockMode = lmLockImmediate, TOraDataSet.CheckMode = cmException. To set optimistic locking use LockMode = lmLockDelayed, CheckMode = cmException.

See Also

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