摘要
为了克服在Java Bean方法中编写许多SQL语句实现数据查询的缺点,通过查询条件进行了对象化的封装,提出了一种针对Java Bean的面向对象的查询方法.通过设置查询条件对象,使用文中所提出的查询方法能方便地实现不同条件的数据查询,可以有效地提高系统的开发效率.
To overcome the drawback in writing many SQL sentences in the realization of query method in Java Beans, an object-oriented query method for Java Bean is proposed in this paper, which allows you to build up a criteria query object programmatically. The query method makes it easy to use restrictions in your queries to selectively retrieve data using criteria query object and can improve the development efficiency evidently.
出处
《合肥学院学报(自然科学版)》
2009年第4期42-46,共5页
Journal of Hefei University :Natural Sciences
基金
国家自然科学基金项目(60873003
60873195)资助