资源描述:
《持久层用户开发手册模板》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、项目文件更改历史记录持久层用户开发手册中国软件与技术服务股份有限公司应用产品研发中心持久层用户开发手册目录1.持久层概述11.1.持久层功能概述11.2.设计目标11.3.使用持久层开发基本过程12.持久层环境12.1.概述12.2.编写persistence.xml13.实现O-R映射23.1.创建bo(BussinessObject)23.2.设置标注43.3.在关系数据库中创建表54.使用持久层操作数据库54.1.获得IPersistenceDAO对象64.2.新增操作64.2.1.publicvoidsaveBO(IDaoBusinessObject
2、bo)64.2.2.publicvoidsaveBO(Listbos)64.3.删除操作74.3.1.publicvoiddeleteBO(IDaoBusinessObjectbo)74.3.2.publicvoiddeleteBO(Listbos)84.4.更新操作94.4.1.publicintupdateBO(IDaoBusinessObjectbo)94.4.2.publicintupdateBO(Listbos)94.5.查询操作104.5.1.Listquery(Class boClass,String sqlStr,List sqlParams
3、)104.5.2.CachedRowSetquery(String sqlStr,List sqlParams)114.5.3.ListqueryByKey(Class boClass,String sqlKey,List sqlParams)124.5.4.CachedRowSetqueryByKey(String sqlKey,List sqlParams)134.5.5.CachedRowSetqueryPageBySQL(String sqlStr,List sqlParams,int totalNum,int pageNum)144.5.6.Lis
4、tpageQuery(ClassboClass,StringwidgetName,StringsqlStr)164.5.7.CachedRowSetpageQuery(String widgetName,String sqlStr)174.5.8.ListpageQuery(Class boClass,String widgetName,String sqlStr,List sqlParams,int totalNum,int pageNum,String sortName,PaginationManager.SortFlag sf)184.5.9.Cach
5、edRowSetpageQuery(String widgetName,String sqlStr,List sqlParams,int totalNum,int pageNum,String sortName,PaginationManager.SortFlag sf)204.5.10.ListpageQuery(Class boClass,String widgetName,String sqlStr,List sqlParams,String sortName,PaginationManager.SortFlag sf)214.5.11.CachedR
6、owSetpageQuery(String widgetName,String sqlStr,List sqlParams,String sortName,PaginationManager.SortFlag sf)234.5.12.ListpageQuery(Class boClass,String widgetName,String sqlStr,中国软件与技术服务股份有限公司-II-持久层用户开发手册List sqlParams)244.5.13.CachedRowSetpageQuery(String widgetName,String sqlStr
7、,List sqlParams)264.5.14.ListpageQuery(Class boClass,String widgetName,String sqlStr,List sqlParams,int totalNum,int pageNum)274.5.15.CachedRowSetpageQuery(String widgetName,String sqlStr,List sqlParams,int totalNum,int pageNum)294.6.增删改304.6.1.intexecute(StringsqlStr,ListsqlParams
8、)304.7.blob和clob操作314.7.1.