Page 1 of 1

Referencing Method types

Posted: Fri Mar 20, 2020 4:12 pm
by WillieJ
Hi,
I'm looking at adding some call stack information - methods called - to our audit logs for selected classes.
Is it ok to reference Method types in classes and dictionaries or would I be creating a nightmare in terms of methods changing being renamed or deleted from classes with ongoing development? For example would I end up needing reorgs simply from renaming/deleting a method?

Is this perhaps a stupid idea?

TIA
Willie

Re: Referencing Method types

Posted: Fri Mar 20, 2020 8:56 pm
by allistar
In my experience you should only reference Jade metadata on transient objects. A reorg can change the underlying oid and as you have noted you could remove a method which would lead to invalid references. I would reference the schema entities by name, not by reference. If you are concerned about disk space or would like this to be quickly searchable you could create a proxy object that represents the class/method. This way you're only referring to your own classes and not to Jade metadata.

Re: Referencing Method types

Posted: Wed Mar 25, 2020 1:33 pm
by WillieJ
Thanks Allistar, I like your proxy idea, it is in fact the disk space issue that I am concerned about so I'll try that.