xpfClassifyInstance
Â
FUNCTION xpfClassifyInstance (aggrIdOrInstanceId : GENERIC) instanceClassification : GENERIC;
The function returns the classification information about a given entity instance or a given aggregate instance.The classification information is:
- Â persistent, scratch or vm (EDMexpressVM) instance.
- Â in case of aggregate: the kind of aggregate
- Â kind of model that locates the instance
The actual model that locates the aggregate instance or entity instance to classify must be open before this operation can be successfully performed. The classification information is returned as bit values, i.e., the bitwise AND operation can be used to find each individual classification information. The following constants are defined for the classification information:
- XPXETA_META_MODEL
- XPXDICTIONARY_MODEL
- XPXMETA_MODEL
- XPXSYSTEM_MODEL
- XPXSESSION_MODEL
- XPXDATA_MODEL
- XPXARRAY_AGGREGATE
- XPXBAG_AGGREGATE
- XPXLIST_AGGREGATE
- XPXSET_AGGREGATE
- XPXPERSISTENT_INSTANCE
- XPXSCRATCH_INSTANCE
- XPXVM_INSTANCE
- XPXSUBTYPE_AGGREGATE
- XPXUNION_AGGREGATE
Note: XPXDICTIONARY_MODEL and XPXMETA_MODEL are two different names of exactly the same, i.e., XPXICTIONARY_MODEL = XPXMETA_MODEL
Â
Arguments
Type | Name | Comment |
GENERIC | aggrIdOrInstanceId | comments |
Return Value
Â
Type | Name | Comment |
GENERIC | instanceClassification | comments |
Options
Â
Example
IF xpfClassifyInstance(inst) = XPXPERSISTENT_INSTANCE ~| XPXDATA_MODEL THEN -- execute code related to persistent instances from a data model ...; END_IF; IF (xpfClassifyInstance(inst) ~& XPXLIST_AGGREGATE) = XPXLIST_AGGREGATE THEN -- execute code related to list from any type of models ...; END_IF;
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â