Home Applications delete-helper

delete-helper

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
5
1 reviews
0
Awards
240
Views
19
IPM installs
1
1
Details
Releases
Reviews
Issues
Pull requests
Articles
A Super class for adding a code-generator %OnDelete method

What's new in this version

Support for IRIS; CLS format; ZPM Support

DeleteHelper

A Super class for adding a code-generator %OnDelete method

With regard to making sure that referenced instances are deleted when the referrer is deleted –
This is especially important when purging messaged in Ensemble.
The class includes a Code Generator %OnDelete method, which generates code at compile-time that should take care of deleting persistent objects referenced by the instance being deleted.

What you’d need to do is add this class as another Super class for your class.
There is also an accompanying class that should help with adding this as a Super class for several classes at once (useful for example for classes that were generated by the SOAP Wizard, which might be quite a few).

See class reference documentation for more details.

Find in the Developer Community (where you come to learn about InterSystems technology, sharing solutions and staying up-to-date on the latest developments), in this post further details and related discussion.

Installation

Either import the classes

Or use the ZPM:

USER>zpm

zpm: USER> install delete-helper

Read more
Made with
Install
zpm install delete-helper download archive
Version
1.0.106 May, 2020
Category
Developer Environment
Works with
CachéEnsembleHealthShareInterSystems IRISInterSystems IRIS for Health
First published
01 Jun, 2018
Last checked by moderator
27 Jun, 2023Works