JVCL Help:TJvBaseDataContext

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

IJvDataContext
TExtensibleInterfacedPersistent
TJvBaseDataContext
TJvBaseFixedDataContext
TJvBaseManagedDataContext
TJvDataContext
run\JvDataProvider.pas


Summary

Base implementation for the IJvDataContext interface.

run\JvDataProvider.pas


Pascal

 run\JvDataProvider.pas
 TJvBaseDataContext = class(TExtensibleInterfacedPersistent, IJvDataContext);


Description

The TJvBaseDataContext class is the base implementer for the IJvDataContext interface. The class itself only provides an implementation for the IJvDataContext methods with an exception of the Name method.
The class provides in an implementation for the SetName method of the IJvDataContextManager class, but that interface is not supported directly. The implementation of this method will check if the new name is unique in the context list and raise an exception if that's not the case. If the name is unique it will call the (abstract) DoSetName method to actually set the new name.
You should never instantiate a TJvBaseDataContext object to provide an implementation for the IJvDataContext interface. Instead you should use a derivative that implements the Name method, such as the TJvDataContext class.

run\JvDataProvider.pas


About

Navigation

run\JvDataProvider.pas



Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page