|Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 1 (10.1)
Part Number B10119-01
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
int OOracleObject::operator==(const OOracleObject &other)
int ODynasetMark::operator==(const ODynasetMark &other)
int OValue::operator==(const OValue &other)
||The other object to which this object is being compared.|
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".
1 if the objects are equal; 0 if they are not.