Microsoft SDK for Java

AdoEnums.LockType Class Fields

The LockType class contains the fields shown in the following table.

Constant Value Description
UNSPECIFIED -1 Does not specify a type of lock. For clones, the clone is created with the same lock type as the original.
READONLY 1 Indicates read-only. You cannot alter the data.
PESSIMISTIC 2 Indicates pessimistic locking, record by record—the provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately upon editing.
OPTIMISTIC 3 Indicates optimistic locking, record by record. The provider uses optimistic locking, locking records only when you call the Recordset.update method.
BATCHOPTIMISTIC 4 Indicates optimistic batch updates. Required for batch update mode as opposed to immediate update mode.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.