edmiRemoteClassifyInstance
EdmiError edmiRemoteClassifyInstance(SdaiServerContext serverContextId, InstanceId instanceId, SdaiInteger *instanceClass, SdaiInvocationId *edmiInvocationId);
This operation returns "classification information" about a given entity instance or a given aggregate instance.
The "classification information" is:
- Persistent, scratch or volatile (EDMexpressVMļļ) instance.
- In case of aggregate: the kind of aggregate
- The kind of model that contains the instance
Arguments
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_serverContextId'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_instanceId_EDMI'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_instanceClass_EDMI'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_edmiInvocationId'.
Return Value
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.
Options
Example
EdmiError rstat; SdaiServerContext myContext; SdaiInteger instClass; SdaiAggr aggrId; /* Create Server Context */ rstat = edmiDefineServerContext("MyContext", "Johnny", "Supervisor", "cf37ftr", "TCP", "9090", "MyServerHost", NULL, NULL, NULL, NULL, NULL, &myContext); . . . rstat = edmiRemoteClassifyInstance(myContext, aggrId, &instClass, NULL); /* Get the instance nature */ printf("%d is a", aggrId); if (instClass & PERSISTENT_INSTANCE) { printf(" persistent"); } else if (instClass & SCRATCH_INSTANCE) { printf(" scratch", aggrId); } else if (instClass & VM_INSTANCE) { printf(" volatile"); } else { printf("n unknown aggregate type."); goto err; } printf (" aggregate of"); /* Get the aggregate type */ if (instClass & ARRAY_AGGREGATE) { printf(" Array type"); } else if (instClass & LIST_AGGREGATE) { printf(" List type"); } else if (instClass & SET_AGGREGATE) { printf(" Set type"); } else if (instClass & BAG_AGGREGATE) { printf(" Bag type"); } else { printf(" unknown type."); } . . .
See also
Filter by label
There are no items with the selected labels at this time.