INFORMIX
DataBlade API Programmer's Manual
Chapter 3: Handling Smart Large Objects
Home Contents Index Master Index New Book

Handling Smart Large Objects

What Is a Smart Large Object?
Parts of a Smart Large Object
The sbspace
The LO Handle
Information About a Smart Large Object
Storage Characteristics
Status Information
A Smart Large Object in the Database
Valid Data Types
The CLOB and BLOB Data Types
The Opaque Data Type
Access to a Smart Large Object
Selecting a Smart Large Object
Storing a Smart Large Object
Using the Smart-Large-Object Interface
Smart-Large-Object Data Structures
The LO-Specification Structure
The LO Handle
The LO File Descriptor
The LO-Status Structure
Smart-Large-Object Functions
Smart-Large-Object Creation
Smart-Large-Object I/O
Manipulation of LO Handles
Smart-Large-Object Storage Characteristics
Smart-Large-Object Status
Smart Large Objects to and from Operating-System Files
Creating a Smart Large Object
Obtaining the LO-Specification Structure
New Storage Characteristics
Storage Characteristics from an Existing Smart Large Object
Choosing Storage Characteristics
Obtaining Storage Characteristics
Using the Storage-Characteristics Hierarchy
Initializing an LO Handle and LO File Descriptor
Obtaining an LO Handle
Obtaining an LO File Descriptor
Writing Data to a Smart Large Object
Storing the LO Handle
Deallocating Resources
Deallocating an LO-Specification Structure
Deallocating an LO Handle
Sample Code to Create a New Smart Large Object
Accessing an Existing Smart Large Object
Selecting the LO Handle
Binary and Text Representations of an LO Handle
Validating an LO Handle
Opening a Smart Large Object
Open Mode
Smart-Large-Object Locks
Reading Data from a Smart Large Object
Closing a Smart Large Object
Sample Code to Select an Existing Smart Large Object
Modifying a Smart Large Object
Updating a Smart Large Object
Updating Smart-Large-Object Data
Updating the LO Handle
Altering Storage Characteristics
Obtaining the Status of a Smart Large Object
Obtaining a Valid LO File Descriptor
Obtaining an LO-Status Structure
Allocating Memory for an LO-Status Structure
Accessing Status Information
Deallocating an LO-Status Structure
Deleting a Smart Large Object
Managing the Reference Count
Closing LO File Descriptors
Using Operating-System Files



DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.