Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Returns the domain of the specified aggregate. The domain of an aggregate is an entity instance of array_type, bag_type, list_type or set_type. These instance types (entities) are defined in the EDMmetaMetaModel named SDAI_DICTIONARY_MODEL_DICTIONARY_DATA.
The actual model that hosts the specified aggregate must be open before this operation can be successfully performed.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetAggrDomain (SdaiAggr     aggrId,
                              SdaiInstance *domainId); 
Arguments:

aggrId

A numeric aggregateID that uniquely identifies the aggregate of interest in the EDMdatabase.
The aggregateID is returned when the aggregate is created.

domainId

Address of a variable that will receive a numeric instanceID that uniquely identifies the aggregate domain instance in an EDMdatabase

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
SdaiAggr aggrId;
SdaiInstance aggrDomainId;
. . .
if (rstat = edmiGetAggrDomain(aggrId, &aggrDomainId)) {
/* Error in operation */ 
printf("\nError: %s in edmiGetAggrDomain\n", 
edmiGetErrorText(rstat)); 
goto error; 
}

  • No labels