operator==

Applies To

OAdvise, OClient, OConnection, OConnectionCollection, ODatabase, ODynaset, ODynasetMark, OField, OFieldCollection, OParameter, OParameterCollection, OSession, OSessionCollection, OValue

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.