...
SYNTAX:
xpfClassifyInstance (aggrIdOrInstanceId : GENERIC) instanceClassification : GENERIC;
The xpfClassifyInstance function returns ?classification information?
Code Block | ||||
---|---|---|---|---|
| ||||
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 persistent, scratch or vm (EDMexpressVM) instance.
- in in case of aggregate: the kind of aggregate
- kind 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
This function is equivalent to the EDMinterface function edmiClassifyInstance
Arguments
...
Type | Name | Comment |
GENERIC | aggrIdOrInstanceId | comments |
Return Value
...
Type | Name | Comment |
GENERIC | instanceClassification | comments |
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
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 (Content by label) | ||||||
---|---|---|---|---|---|---|
|