Programmer Guide : solidDB® SA : solidDB® SA function reference : SaCursorSetLockMode
  
SaCursorSetLockMode
SaCursorSetLockMode sets the cursor search mode.
This setting affects the possible locking modes in the server. If a search is already active, the setting will affect only the next search done in the same cursor. By default the search mode is SA_LOCK_SHARE.
Synopsis
SaRetT SA_EXPORT_H SaCursorSetLockMode(
  SaCursorT* scur,
  sa_lockmode_t lockmode)
Parameters
Parameters
Usage type
Description
scur
in, use
Pointer to a cursor object
lockmode
in
Search mode that can be one of the following mode:
SA_LOCK_SHARE
SA_LOCK_FORUPDATE
SA_LOCK_EXCLUSIVE
The meanings of the various modes are as follows:
SA_LOCK_SHARE: default optimistic concurrency control.
SA_LOCK_FORUPDATE: locks the row for update; others can only read, not write.
SA_LOCK_EXCLUSIVE: locks the row exclusively; others cannot read or write this record.
Note This function applies to any table; the table does not need to have a particular lock mode for this function to apply.
Return value
SA_RC_SUCC SA_ERR_ILLENUMVAL
See also
solidDB® SA function reference