FireDAC.Stan.Option.TFDUpdateOptions.LockWait

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property LockWait: Boolean read GetLockWait write SetLockWait  stored IsLWS default False;

C++

__property bool LockWait = {read=GetLockWait, write=SetLockWait, stored=IsLWS, default=0};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Stan.Option.pas
FireDAC.Stan.Option.hpp
FireDAC.Stan.Option TFDUpdateOptions

Description

Controls the waiting for the pessimistic lock to be acquired.

Use the LockWait property to control whether FireDAC should wait while the pessimistic lock is acquired (True), or return the error immediately (False) if the record is already locked. The default value is False

The LockWait property is used only if LockMode = lmPessimistic

Note: Not all DBMSs support LockWait=False or True. Therefore, LockWait declares the desired behaviour and is not a must.

See Also