TypeDefinition :: viewWhere - Where specification
The function returns a string containing the WHERE expression as being defined in a view definition or SELECT statement. In case of errors or invalid type definition, the function throws an exception.
Implementation details
When the type definition is a valid view definition, the function returns a string containing the WHERE expression The WHERE clause describes a filter as precondition, which is defined in terms of the FROM collection, i.e. the expression for the condition may refer to properties defined in the structure of the FROM instances.
When no WHERE clause has been defined for the view, an empty string is returned. When calling the function with an invalid type definition or when the type definition does not refer to an view type, the function throws an exception. In order to check, whether the data type is a view type, isView() might be called.