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.

20<br />

<strong>Using</strong> Callback Methods<br />

Callback methods are called by system methods to allow additional user written processing<br />

during specific events. To distinguish these types of methods, they are given names of the<br />

form %OnEvent or OnEvent, where Event describes the event that triggers the callback.<br />

If an event supports a callback method, the method controlling the event automatically executes<br />

the callback method it if it exists. You should never explicitly execute callback methods.<br />

<strong>Caché</strong> supports the following callback methods:<br />

• %OnAddToSaveSet<br />

• %OnAfterSave<br />

• %OnBeforeSave<br />

• %OnClose<br />

• %OnConstructClone<br />

• %OnDelete<br />

• %OnDetermineClass<br />

• %OnNew<br />

• %OnOpen<br />

• %OnRollBack<br />

• %OnValidateObject<br />

• OnPopulate<br />

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

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

Saved successfully!

Ooh no, something went wrong!