Used to specify what kind of lock will be performed when editing a record.
property LockMode: TLockMode default lmNone;
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.