BaseContext :: className - Get class name from context class
In order to create property error messages and in order to determine the current class name at run-time or for type safe casting, the name of the context class can be stored in the className property.
The class name might also be used in order to define internal classification for context classes. The class name is not used by the system. Typically, the class name is set in the doBeforeOpen() handler.
When the context handle does not refer to a valid context instance the property throws an exception.
The class name is the name of an implementation class (usually) defined in the database. Class names must not exceed 40 characters.
In order to pass no class name, an empty string ( String () ) might be passed.
Implementation overview
- Get class name
BaseContext :: className (  ) - Set class name for context class
BaseContext :: className ( sClassName )
Implementation details
-
Get class name
odaba::String BaseContext  :: className (  )
The function returns the class name for the context class when it has been set in the create() or doBeforeOpen() function or when being constructed. When no class name has been set, the function returns an empty string.
to list
-
Set class name for context class
odaba::String BaseContext  :: className ( odaba::String &sClassName )
In order to set the class name passed in sClassName as class name for the context. The function should be called in the Create() or doBeforeOpen() function or in the constructor.
- sClassName
- Class name
The class name is the name of an implementation class (usually) defined in the database. Class names must not exceed 40 characters.
In order to pass no class name, an empty string ( String () ) might be passed.
to list
- sClassName
- Class name