25.01.2015 Views

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

13.1 Inheritance and SQL .......................................................................................... 113<br />

13.1.1 How a Class is Projected to SQL ............................................................. 114<br />

13.1.2 Naming Rules for Projected Classes ........................................................ 114<br />

13.2 The Object-SQL Projection ............................................................................... 115<br />

13.2.1 Identity (OIDs Projected to SQL) ............................................................ 115<br />

13.2.2 Properties .................................................................................................. 116<br />

13.2.3 Methods .................................................................................................... 122<br />

13.2.4 SQL Triggers ............................................................................................ 122<br />

13.2.5 Relationships ............................................................................................ 123<br />

14 Relationships .............................................................................................................. 125<br />

14.1 Relationship Basics ............................................................................................ 126<br />

14.1.1 Relationship Keywords ............................................................................. 126<br />

14.1.2 Defining a Relationship ............................................................................ 127<br />

14.2 Dependent Relationships ................................................................................... 128<br />

14.3 In-Memory Behavior of Relationships .............................................................. 129<br />

14.4 Persistent Behavior of Relationships ................................................................. 131<br />

14.4.1 Referential Integrity .................................................................................. 131<br />

14.4.2 Persistent Behavior of Dependent Relationships ..................................... 131<br />

15 Streams ....................................................................................................................... 133<br />

15.1 Declaring Stream Properties .............................................................................. 133<br />

15.1.1 Projecting Streams to ODBC ................................................................... 134<br />

15.2 <strong>Using</strong> the Stream Interface ................................................................................. 134<br />

15.2.1 Reading and Writing Stream Data ............................................................ 135<br />

15.2.2 Copying Data between Streams ................................................................ 136<br />

15.2.3 Inserting Stream Data ............................................................................... 136<br />

15.2.4 <strong>Using</strong> Streams in Object Applications ...................................................... 137<br />

15.3 <strong>Using</strong> Streams with SQL ................................................................................... 137<br />

15.4 Streams and Visual Basic ................................................................................... 139<br />

16 Class Projections ........................................................................................................ 141<br />

16.1 Projection Definitions ........................................................................................ 141<br />

16.1.1 Adding a Projection to a Class ................................................................. 141<br />

16.2 Projection Classes .............................................................................................. 142<br />

16.2.1 The Projection Interface ........................................................................... 142<br />

16.2.2 The Standard Projection Classes .............................................................. 143<br />

16.2.3 Creating a New Projection Class .............................................................. 144<br />

<strong>Using</strong> <strong>Caché</strong> <strong>Objects</strong><br />

vii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!