Strings and binary data can be stored in an Oracle8 database using either Locator types (CLOB and BLOB) or LONG and RAW datatypes. The class RWDBOracle8EnvironmentHandle has four methods for controlling whether RWDBValue::String and RWDBValue::Blob are mapped to locators when creating tables with DBTools.h++. These methods set and return information about an internal flag that is used to determine whether or not a column should be typed as an OCI* Locator type. (See Table 2 for the default mappings.) The methods are:
RWBoolean ociLocatorForDefaultString();
Returns TRUE if, when creating tables, a Locator column is associated with an RWDBColumn that has an RWDBValue::ValueType of String. The default value is FALSE.
void ociLocatorForDefaultString(RWBoolean);
When creating tables, sets the flag for controlling whether or not a Locator column is associated with an RWDBColumn that has an RWDBValue::ValueType of String.
RWBoolean ociLocatorForDefaultBlob();
Returns TRUE if, when creating tables, a Locator column is associated with an RWDBColumn that has an RWDBValue::ValueType of Blob. The default value is FALSE.
void ociLocatorForDefaultBlob(RWBoolean);
When creating tables, sets the flag for controlling whether or not a Locator column is associated with an RWDBColumn that has an RWDBValue::ValueType of Blob.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.