DataDomain: DbDataDomain;
The DataDomain property determines data type used to store multibyte information in attribute.
If the DataDomain property is set to DbDataDomain.Memo and the IRdsAttribute.DataType property is set to DbDataType.String, the attribute is of the Long Text type.
Consider the following constraints on working with the Long Text attribute:
If Oracle or Teradata DBMS is used, it is not available to search by this attribute value.
These attributes cannot be included into a unique and nonunique indexes.
These attributes may be sampled and saved slower than standard text attributes.
Executing the example requires that the repository contains an MDM dictionary with the TD_MDM identifier. This dictionary should not contain an attribute with the MemoAttr identifier.
Add links to the Dal, Metabase and Rds system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Dict: IRdsDictionary;
Attrs: IRdsAttributes;
Attr: IRdsAttribute;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("TD_MDM").Edit;
Dict := MObj As IRdsDictionary;
Attrs := Dict.Attributes;
Attr := Attrs.Add;
Attr.DataType := DbDataType.String;
Attr.DataDomain := DbDataDomain.Memo;
Attr.Id := "MemoAttr";
Attr.Name := "Attribute for multibyte information";
Attr.Nullable := True;
MObj.Save;
End Sub UserProc;
After executing the example the attribute which can be used to store multibyte information is added to the MDM dictionary.
See also: