company logo

Property :: propertyContext - Get property context

The function returns the property context for the property. When a property context class has been defined for the database property resource, the function returns a specialized context class instance. Otherwise, an instance of the default PropertyContext class will be returned. In case, context is disabled for the database handle, an instance of the default PropertyContext class is returned.

When the property handle defines an independent transient property without object handle reference, the property handle does not provide a context instance and the function will throw an exception.

Return value:  Property context ( odaba::PropertyContext & )

Property context usually refers to an instance of an application defined property context class for the current property of a selected instance. When no property context has been defined, the context refers to the default property context class.

Implementation details

odaba::PropertyContext & Property  :: propertyContext (  )