Skip Headers
Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 2 (10.2)

Part Number B14308-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

SetEditOption Method

Applies To

ORef

Description

Specifies whether the object is to be locked during the pin operation.

Usage

void SetEditOption(int option) const throw(OException)

Arguments

option
Possible values are
  • OREF_NO_LOCK (1) Does not lock the object in the server. This is the default value.
  • OREF_EXCLUSIVE_LOCK (2) Does exclusive lock on the object in the serve.
  • OREF_NOWAIT_LOCK (3) Does exclusive lock on the object in the server with the nowait option.
Remarks

This method should be called before a pin operation on a Ref value, that is, before accessing an attribute for the first time on the ORef object. This option is useful if the object attributes are modified immediately after the pin operation. Locking the object instance during the pin operation saves the round trip to the server during the Edit operation.

See Also

GetEditOption Method