delete-helper


Follow
1
Star
1
Details
Version history
Issues
This application is not supported by InterSystems Corporation. Use it at your own risk.

What's new in this version

Support for IRIS; CLS format; ZPM Support

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

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
ZPM installation
zpm "install delete-helper"
Category
Developer Environment
Works with
CachéEnsembleHealth ConnectInterSystems IRISInterSystems IRIS for Health
Tags
Info
Version
2020.1
Last updated
2020-05-06
Repository
Open
Documentation
Open
License
Link