SystemMethodsRemover

Downloads5
Subscribe
0
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues

What's new in this version

SystemMethodsRemover

Removes system ($) methods from the codebase. InterSystems Caché utility.

What it does?

  1. Replaces .$ with .<something of your choice> (.% by default)
  2. Capitalizes the letter after $
  3. Replaces references from %Object to %DynamicObject etc

Use

Import classes and call one of the entry points:

s st = ##class(SMR.Main).RemoveFromAllClasses(Replace, Capitalize) - for all user classes

s st = ##class(SMR.Main).RemoveFromSubclassesOf(Class, Replace, Capitalize) - for subclasses

s st = ##class(SMR.Main).RemoveFromMatchingClasses(Mask, Replace, Capitalize) - for LIKE SQL

Arguments:

  • Replace - what to replace $ with (% by default but, for example, you can specify $$$)
  • Capitalize - capitalize the letter after $ (boolean, yse by default)
  • Class - class which subclasses the utility would try to convert (including the class)
  • Mask - passed into the SQL query SELECT ID FROM %Dictionary.ClassDefinition Where ID LIKE ?

More docs are in the code docs. The utility works only in a current namespace.

Requirements

Works in 2016.2 Field Test or later.

Rating
3 (1)
Category
Developer Environment
Works with
Caché
Tags
Info
Version
1.21.3
Last updated
2018-06-01
Repository
Open
License
Link