Top
PowerCOBOL V11.0 Reference
FUJITSU Software

4.171 LockType Property

Description:

Indicates the type of locks placed on records during editing.

Used in controls:

ADODataSource

Used in Objects:

None.

Values (with constants):

-1 - adLockUnspecified: (POW-ADODB-ADLOCKSPECIFIED)
Does not specify a type of lock.

1 - adLockReadOnly:(POW-ADODB-ADLOCKREADONLY)
Indicates read-only records.

2 - adLockPessimistic:(POW-ADODB-ADLOCKPESSIMISTIC)
Indicates pessimistic locking, record by record.

3 - adLockOptimistic:(POW-ADODB-ADLOCKOPTIMISTIC)
Indicates optimistic locking, record by record.

4 - adLockBatchOptimistic: (POW-ADODB-ADLOCKBATCHOPTIMISTIC)
Indicates optimistic batch updates.

Consult the ADO documentation for details about lock types.

Note: The value may be ignored depending on the kind of OLE DB Provider to which you connected.

Default value:

3 - adLockOptimistic:(POW-ADODB-ADLOCKOPTIMISTIC)

COBOL PICTURE:

S9(4) COMP-5

OLE data type:

VT_I2

Design time access:

Set and reference.

Execution time access:

Set and reference.

Backward compatibility attributes:

None.