25.01.2015 Views

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.4.4 Modfiying Array Properties ........................................................................ 78<br />

10.4.5 Modifying Stream Properties ..................................................................... 80<br />

10.5 Saving <strong>Objects</strong> ..................................................................................................... 81<br />

10.6 Deleting <strong>Objects</strong> ................................................................................................... 81<br />

10.6.1 Deleting a Single Object ............................................................................. 82<br />

10.6.2 Deleting All <strong>Objects</strong> in an Extent ............................................................... 82<br />

10.7 Executing Queries ................................................................................................ 83<br />

10.7.1 Query Metadata Methods ........................................................................... 83<br />

10.7.2 Preparing Queries for Execution ................................................................ 84<br />

10.7.3 Executing Queries ...................................................................................... 85<br />

10.7.4 Processing Query Results ........................................................................... 85<br />

10.7.5 Closing Queries .......................................................................................... 86<br />

10.7.6 Example of <strong>Using</strong> a Class Query ............................................................... 86<br />

11 Data Types .................................................................................................................... 89<br />

11.1 Available Types .................................................................................................... 90<br />

11.2 Operation .............................................................................................................. 91<br />

11.2.1 <strong>Using</strong> Data Types in Classes ...................................................................... 91<br />

11.2.2 Parameters .................................................................................................. 91<br />

11.2.3 Keywords .................................................................................................... 93<br />

11.2.4 Data Formats and Translation Methods ...................................................... 96<br />

11.3 Enumerated Properties ......................................................................................... 97<br />

12 Object Persistence ........................................................................................................ 99<br />

12.1 The %Persistent Class .......................................................................................... 99<br />

12.2 The Persistence Interface ................................................................................... 100<br />

12.2.1 Saving <strong>Objects</strong> .......................................................................................... 100<br />

12.2.2 Opening <strong>Objects</strong> ....................................................................................... 103<br />

12.2.3 Deleting <strong>Objects</strong> ....................................................................................... 106<br />

12.2.4 Testing if <strong>Objects</strong> Exist ............................................................................ 107<br />

12.3 Object Extents .................................................................................................... 107<br />

12.3.1 The Extent Query ..................................................................................... 108<br />

12.4 Storage Definitions and Storage Classes ........................................................... 109<br />

12.4.1 The %CacheStorage Storage Class .......................................................... 110<br />

12.4.2 The %CacheSQLStorage Storage Class ................................................... 110<br />

12.5 Schema Evolution .............................................................................................. 110<br />

12.5.1 Resetting the Storage Definition .............................................................. 111<br />

13 <strong>Objects</strong> and SQL ........................................................................................................ 113<br />

vi<br />

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

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

Saved successfully!

Ooh no, something went wrong!