edmiGetPersistentAttrHashTable


 

EdmiError edmiGetPersistentAttrHashTable(SdaiModel         modelId,
                                         SdaiString        entityName, 
                                         SdaiString        attributeName, 
                                         SdaiInteger       *entityIndex, 
                                         SdaiInteger       *attrHashTables,
                                         SdaiAttrHashTable *data);

Searches the specified model for definitions of persistent attribute hash tables. For each hash table a structure of type tSdaiAttrHashTable (see below) is returned. If both entity name and attribute name are specified, information about a possible persistent attribute hash table for that attribute is returned. If only entity name is specified, information about all persistent attribute hash tables for that entity is returned. If not the entity name is specified, information about all persistent attribute hash tables for the entities with entity index equal or greater to the argument entityIndex are returned.

 

typedef struct SDAI_ATTR_HASH_TABLE {
     SdaiInstance          attrHashTableId; 
     SdaiString               entityName; 
     SdaiString               attributeName; 
     EdmiPackedDate   creationTime; 
     SdaiOptions           options; 
     SdaiInteger             hashTableWidth; 
     SdaiInteger             stringLength; 
} tSdaiAttrHashTable;

Arguments


TypeNameComment
SdaiModel

modelId

Instance Id that uniquely identifies a dictionaryModel or a dataModel in the EDMdatabase. The modelID is returned from the functions: sdaiCreateModel , sdaiCreateModelBN , sdaiOpenModelBN , edmiGetModel , edmiGetModelBN , sdaiGetInstanceModel

SdaiString

entityName

Optional. Specify the name of the instance type, i.e. the name of the entity that defines the instance type. Entity names are case insensitive.

SdaiString

attributeName

Optional. Specifies the name of the attribute. Attribute names are case insensitive.

SdaiInteger

*entityIndex

Optional. Used if entityName == NULL. Then it is the index of the first entity in the model, to search for persistent attribute hash tables.

SdaiInteger

*attrHashTables

Address of variable where number of attribute hash tables is returned.

SdaiAttrHashTable

*data

The address of array pointer to the tSdaiAttrHashTable array. After use the array must be released by edmiFree.

Return Value


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

Options


 

Example


 

 <example>

 

See also

Filter by label

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

Â