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

operator==

Applies To

OAdvise, OClient, OConnection, OConnectionCollection, ODatabase, ODatabaseCollection, ODynaset, ODynasetMark, OField, OFieldCollection, OParameter, OParameterCollection, OSession, OSessionCollection, OValue, OAQ, OAQAgent, OAQMsg, OBfile, OBlob, OClob, OCollection, OException, OMDAttribute, OMetaData, OObject, ORef, OServer, OSnapshotID

Description

Equivalence operator

Usage

int OOracleObject::operator==(const OOracleObject &other)

int ODynasetMark::operator==(const ODynasetMark &other)

int OValue::operator==(const OValue &other)

Arguments

other
The other object to which this object is being compared.
Remarks

For the subclasses of OOracleObject - namely OAdvise, OClient, OConnection, OConnectionCollection, ODatabase, ODynaset, ODynasetMark, OField, OFieldCollection, OParameter, OParameterCollection, OSession, and OSessionCollection - two objects are the same if they refer to the same underlying implementation object. If one object was assigned from the other or copy constructed from the other, or if they were both obtained from some other object in the same way, they are equal.

If either of the objects is closed (and even if they are both closed), they are considered unequal.

Two OValue objects are equal if their values are equal. This equality crosses over type boundaries: integer 34 equals double 34.0 equals string "34".

Return Value

  1. if the objects are equal; 0 if they are not.