Referencing Method types

For questions and postings not covered by the other forums
WillieJ
Posts: 4
Joined: Fri Apr 13, 2018 11:03 am

Referencing Method types

Postby WillieJ » Fri Mar 20, 2020 4:12 pm

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

allistar
Posts: 156
Joined: Fri Aug 14, 2009 11:02 am
Location: Mount Maunganui, Tauranga

Re: Referencing Method types

Postby allistar » Fri Mar 20, 2020 8:56 pm

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.

WillieJ
Posts: 4
Joined: Fri Apr 13, 2018 11:03 am

Re: Referencing Method types

Postby WillieJ » Wed Mar 25, 2020 1:33 pm

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.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests