company logo

DBBaseContext :: asObjectSpaceContext - Convert to object space context

The function may be called in order to convert the more general DBBaseContext to a ObjectSpaceContext.

The function throws an exception, when the current context is not a ObjectSpaceContext instance.

Return value:  Object space context ( odaba::ObjectSpaceContext & )

Object space context usually refers to an instance of an application defined object space context class for the current object space. When no Object space context has been defined in the application, the context refers to the default database context class.

Implementation details

odaba::ObjectSpaceContext & DBBaseContext  :: asObjectSpaceContext (  )

The function returns a ObjectSpaceContext context, when the current DBBaseContext is a ObjectSpaceContext instance.