OValue

An OValue object is a convenient place to store data of a variety of different types. It is also useful as a way to convert between different types. You can use OValues to get and set field values in a type-independent fashion. OValue is a subclass of OOracleObject.

OValue has a rich set of constructors and SetValue methods to set values using different types and cast operators to obtain the value from an OValue instance. The Clear method sets the value to a database NULL value (which is not the same as a C++ NULL). The IsNull method checks to see whether the current value is NULL.

The OValue class supports the following methods:

Construction and destruction:

OValue

~OValue

operator=

Attributes:

operator==

operator!=

IsNull

IsOpen

Operations:

operator const char *
operator double
operator int

operator long
Clear
SetValue