Kbase P67452: Dyn Is it necessary to implement set and get functions to ha
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/12/2004 |
|
Status: Unverified
GOAL:
Is it necessary to implement set and get functions to handle properties of extended objects?
FACT(s) (Environment):
Dynamics 2.1A
FIX:
A white paper about "Extending Object Classes in Progress Dynamics" reports in a "Defining Support Functions for New Attributes" section that it is recommended to add support functions for new attributes although not necessary.
Actually, it has to be kept in mind that the {get} and {set} pseudo functions will either results in:
1) calling DYNAMICS-FUNCTION('get/set<AttributeName>' IN hTargetObject)
or
2) returning directly the BUFFER-VALUE of the corresponding property field of the ADMReposProp record of the object
The second option is the fastest, however a xp<PropertyName> preprocessor has been defined before calling the {get} or {set} to enable it.
So in other words, you should define the support functions, so a code that does not define the xp<PropertyName> preprocessor will let the get and set pseudo syntax access the property via function. However, defining the xp<PropertyName> preprocessor each time the property has to be called will bypass the function and result in better performance.