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

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:

IsNull
IsOpen

operator==
operator!=

Operations:
Clear
GetObjType
operator const char *
operator double
operator int
operator long
operator OBfile
operator OBlob

operator OClob
operator OCollection
operator OMetaData
operator OObject
operator ORef
SetEmpty
SetValue