Oracle Objects for OLE C++ Class Library
Release 9.2

Part Number A95896-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
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 © 1998, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback