softLock
Mixin. Pessimistic Lock implementation
Methods
# isLocked (ctx: ubMethodParams) static
Check record is locked
Arguments:
ctx
: ubMethodParamsmParams
: objectMethod parameters
# lock (ctx: ubMethodParams) static
Lock record. If record is not locked then update
& delete
operation are not permitted
Arguments:
ctx
: ubMethodParamsmParams
: objectMethod parameters
# renewLock (ctx: ubMethodParams) static
Renew existed lock
Arguments:
ctx
: ubMethodParamsmParams
: objectMethod parameters
# unlock (ctx: ubMethodParams) static
Unlock record
Arguments:
ctx
: ubMethodParamsmParams
: objectMethod parameters