company logo

TypeContext :: userTypeName - Provide user type name

The user type names can be provided in order to assign more specific type names as the system does (e.g. category names). By default, the function returns the official type name assigned to the type at definition. However, overloading the function in an application specific type context class allows assigning more specific type names.

Notes:

Mainly, user type names are requested when indexing objects in order to create object subsets by kategory for each keyword. Thus you may index person objects and create kategory subsets for male and female persons by returning different type names for male (Man) and female (Woman).

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

The type name is the name of a data type (usually) defined in the database. The type name might be passed as simple identifier or as scoped name with preceding namespace names separated by double colon '::'.

In order to pass no type name, an empty string ( String() ) may be passed.

Implementation details

odaba::String TypeContext  :: userTypeName (  )