getEnum Method
Get the value as ECEnumeration value Note: This method is optional. Using getInteger for integral enums and getString for string enums respectively are the usual way to get enum values. This method can be used if the context of the underlying ECEnumeration is required. The value is broken down into the ECEnumerators that make it up, if the value is a combination of ECEnumerators. If the value is not a strict match of an ECEnumerator or a combination of them, undefined is returned.
Note: You can call ECSqlValue.columnInfo.isEnum to find out whether this method can be called or not.
getEnum(): undefined | ECEnumValue[]
@returns ECEnumeration value(s) or undefined if the ECSqlValue does not represent an ECEnumeration. or is not a strict match of an ECEnumerator or a combination of them.
Returns - undefined | ECEnumValue[]
ECEnumeration value(s) or undefined if the ECSqlValue does not represent an ECEnumeration. or is not a strict match of an ECEnumerator or a combination of them.
Defined in
- core/backend/src/ECSqlStatement.ts Line 668
Last Updated: 14 November, 2024