Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 1 (10.1) Part Number B10119-01 |
|
Applies To
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. |
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