Delphi中数据集对象化的设计和实现  被引量:2

Design and Implementation of Object-Oriented Manipulation of Dataset in Delphi

在线阅读下载全文

作  者:雷梦龙[1] 

机构地区:[1]武汉理工大学计算机学院,湖北武汉430070

出  处:《计算机技术与发展》2006年第6期157-159,共3页Computer Technology and Development

摘  要:提出一种在Delphi环境下实现数据集(DataSet)对象化访问的简单有效的方案。该方案中,应用了代理设计模式设计了一个对TDataSet类的代理。在代理内部,经由RTTI获得了客户端正在访问的属性名字后,返回TDataSet对象中相应属性的值;同时运用Foreach模式,提供了对TDataSet的数据记录的顺序访问的接口。实践证明,它很好地实现了在Delphi环境下对数据集的对象化访问。The essay proposed a simple and effect solution which can manipulate data record set in an object - oriented way in Delphi. In the solution,implecnent a proxy to TDatsSet class, which can get the value of field the clients accessing through the property name by using RTTI. Also provide the interface of iteration ability through using iterator pattern. As shown in the practise,this solution has been proved that can be very suitable for a simple way to the problem.

关 键 词:DELPHI 运行时类型标识 PROXY模式 IIterator模式 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象