摘要
为了解决领域模型和数据库之间的紧耦合问题,提出基于C++的对象关系映射(ORM)架构。给出抽象基类、映射器注册表类的关键技术和部分实现代码,通过智能指针实现领域对象的关系映射和生命周期管理。基于该架构设计并实现的ORM子系统,已应用于设备状态检测与安全评价系统中,运行情况良好。
In order to resolve the tight coupling problem between domain model and database, this paper proposes Object Relation Mapping(ORM) architecture based on C++. It gives some key technologies and sectional implement codes about abstract base classes, mapper registry classes, realizes relation mapping and lifecycle management of domain object through intelligent pointer. The ORM subsystem designed and realized based on this architecture is applied in equipment state monitor and security evaluation system, its operation situation is well.
出处
《计算机工程》
CAS
CSCD
北大核心
2010年第7期71-72,75,共3页
Computer Engineering
基金
国家自然科学基金资助项目"全矢谱技术体系构建及故障诊断基础研究"(50675209)
河南省杰出人才创新基金资助项目"同源信息融合空间域体系构建与系列产品研发"(062100500)
关键词
对象关系映射
智能指针
C++语言
Object Relation Mapping(ORM)
intelligent pointer
C++ language