ODAC

TOraDataSet.LockMode Property

Used to define when to perform the locking of an editing record.

Class

TOraDataSet

Syntax

property LockMode: TLockMode;

Remarks

Use the LockMode property to define when to perform the locking of an editing record. Locking a record is useful when creating multi-user applications. It prevents the possibility of several users modifying a record at the same time. Locking is realized through the execution of SELECT FOR UPDATE NOWAIT statement.

Locking is performed by the RefreshRecord method.

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

The default value is lmNone.

See Also

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