edmiClassifyInstance

EdmiError edmiClassifyInstance(SdaiInstance id,
                                SdaiInteger *instanceClass)

This operation returns "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.

Arguments


TypeNameComment
SdaiInstance

id

A numeric instanceID or aggregateID that uniquely identifies the entity instance or aggregate instance to classify.

SdaiInteger

instanceClass

Address of a variable that receives the result of the operation. The result will be a bitwise OR of the following:
META_META_MODEL, DICTIONARY_MODEL, META_MODEL, SYSTEM_MODEL, SESSION_MODEL, DATA_MODEL, ARRAY_AGGREGATE, BAG_AGGREGATE, LIST_AGGREGATE, SET_AGGREGATE, PERSISTENT_INSTANCE, SCRATCH_INSTANCE, VM_INSTANCE, SUBTYPE_AGGREGATE, UNION_AGGREGATE
Note: DICTIONARY_MODEL and META_MODEL are two different names of exactly the same, i.e.,  DICTIONARY_MODEL = META_MODEL

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

 

Options


  

 

Example


 

EdmiError rstat;
 SdaiInstance id;
 SdaiInteger instanceClass;
 . . .
 If (rstat = edmiClassifyInstance (id, &instanceClass)) {
 /* Error in operation */ 
 printf("\nError: %s in edmiClassifyInstance\n", 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.

Â