Oracle Objects for OLE C++ Class Library
Release 9.0.1

Part Number A90172-01

Home

Book List

Contents

Master Index

Feedback

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


 
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.

Home

Book List

Contents