xx
FILE SET ......................................................................................................................................... 16-13
FLUSH BUFFER ............................................................................................................................ 16-14
FREE TEMPORARY...................................................................................................................... 16-14
LOAD FROM FILE........................................................................................................................ 16-15
OPEN .............................................................................................................................................. 16-16
READ .............................................................................................................................................. 16-16
TRIM ............................................................................................................................................... 16-18
WRITE............................................................................................................................................. 16-18
DESCRIBE ...................................................................................................................................... 16-19
LOBs and the Navigational Interface.............................................................................................. 16-21
Transient Objects........................................................................................................................... 16-21
Persistent Objects .......................................................................................................................... 16-21
Navigational Interface Example.................................................................................................. 16-22
LOB Program Examples ..................................................................................................................... 16-23
READ a BLOB, Write a File Example......................................................................................... 16-23
Read a File, WRITE a BLOB Example ........................................................................................ 16-24
lobdemo1.pc................................................................................................................................... 16-26
17 Objects
Introduction to Objects ........................................................................................................................ 17-1
Object Types..................................................................................................................................... 17-2
REFs to Object Types ...................................................................................................................... 17-2
Type Inheritance.............................................................................................................................. 17-2
Using Object Types in Pro*C/C++ ..................................................................................................... 17-3
NULL Indicators.............................................................................................................................. 17-3
The Object Cache .................................................................................................................................. 17-4
Persistent Versus Transient Copies of Objects............................................................................ 17-4
Associative Interface............................................................................................................................. 17-4
When to Use the Associative Interface......................................................................................... 17-4
ALLOCATE...................................................................................................................................... 17-4
FREE.................................................................................................................................................. 17-5
CACHE FREE ALL ......................................................................................................................... 17-5
Accessing Objects Using the Associative Interface .................................................................... 17-5
Navigational Interface.......................................................................................................................... 17-6
When to Use the Navigational Interface...................................................................................... 17-7
Rules Used in the Navigational Statements................................................................................ 17-7
OBJECT CREATE............................................................................................................................ 17-8
OBJECT DEREF ............................................................................................................................... 17-8
OBJECT RELEASE .......................................................................................................................... 17-9
OBJECT DELETE............................................................................................................................. 17-9
OBJECT UPDATE ........................................................................................................................... 17-9
OBJECT FLUSH............................................................................................................................. 17-10
Navigational Access to Objects ................................................................................................... 17-10
Converting Object Attributes and C Types.................................................................................... 17-12
OBJECT SET................................................................................................................................... 17-12
OBJECT GET.................................................................................................................................. 17-13
Object Options Set/Get ...................................................................................................................... 17-14