一种新的数据持久层设计方法与实现
A New Design and Application of Data Persistence Layer
-
摘要: 针对目前数据库模型改动将导致业务层和数据库层的大量数据修改的不足这一问题,提出建立新的框架即双重数据持久层框架的设计方法,该方法联合运用iBATIS数据持久层框架和数据字典技术来实现.当数据库模型需要变更时,可较方便地通过操作数据字典,来实现对数据持久层和数据库模型的同步维护,较大程度提高了工作效率,可移植性增强.Abstract: According to the shortages of a large number of workload will be triggered in the business layer and database layer by reason of the database model changes, this paper puts forward a new framework design pattern which uses the iBATIS data persistence layer framework and the data dictionary technology, establishing jointly double persistence layer during the database system development.When the database model needs to change, it can easily to realize synchronous maintenance of the data persistence layer and the database model through the operation of the data dictionary.The method has high efficiency and good portability.