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<br />

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

ObjectScript<br />

This chapter is a guide to using objects within <strong>Caché</strong> ObjectScript programs. In addition to<br />

simple method execution, other relevant operations include:<br />

• Creating objects<br />

• Opening objects<br />

• Modifying objects<br />

• Saving objects<br />

• Deleting objects<br />

• Executing queries<br />

10.1 Executing Methods<br />

Most actions, including creating and modifying objects, involves methods. <strong>Caché</strong> supports<br />

two types of methods, instance methods and class methods. An instance method is invoked<br />

from a specific instance of a class and performs some action related to that instance; a class<br />

method is a method that can be invoked whether or not an object of its class is in memory.<br />

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

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

Saved successfully!

Ooh no, something went wrong!