company logo

TypeDefinition :: viewHaving - Having specification

The function returns a string containing the HAVING expression as being defined in a view definition or SELECT statement. In case of errors or invalid type definition, the function throws an exception.

Return value:  String value ( odaba::String & )

Implementation details

odaba::String TypeDefinition  :: viewHaving (  )

When the type definition is a valid view definition, the function returns a string containing the HAVING expression The HAVING clause describes a filter as post condition, which is defined in terms of the FROM or GROUP_BY collection, i.e. the expression for the condition may refer to properties defined in the data type of FROM instances or in case of grouping definition in the data type of GROUP_BY instances.

When no HAVING 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.