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.

3<br />

The <strong>Caché</strong> Object Model<br />

The <strong>Caché</strong> object model defines the behavior and features of both persistent (database) objects<br />

as well as transient objects (those not stored).<br />

The <strong>Caché</strong> object model supports the following features:<br />

• Persistence—<strong>Objects</strong> can be stored within the <strong>Caché</strong> database or in an external database.<br />

Stored objects are simultaneously projected as relational tables and can be queried using<br />

standard SQL.<br />

The object model is rich enough to define the complete information required for complex<br />

database applications (such as indices, storage structure, integrity constraints, etc.).<br />

• Properties—<strong>Objects</strong> can contain both simple (literal) or object-valued properties. Objectvalued<br />

properties can be references to external objects or embedded objects. There are<br />

also a variety of relationship, collection, and stream properties.<br />

• Custom Data Types—<strong>Objects</strong> can use application-specific data types which are themselves<br />

defined as classes.<br />

• Methods—<strong>Objects</strong> have behavior associated with them.<br />

• Polymorphism—Applications can easily adapt to new circumstances by providing specialized<br />

implementations of operations. The runtime system automatically invokes the<br />

correct implementation based on object type.<br />

• Inheritance—Applications can reuse code by deriving new components from pre-existing<br />

classes.<br />

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

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

Saved successfully!

Ooh no, something went wrong!