文件名称:Java EE)
介绍说明--下载内容来自于网络,使用问题请自行百度
JavaEE实例讲解
LibraryManageSystem整体设计说明
LibraryManageSystem 使用了三层的架构:数据访问(Data acess)层、业务(business)层、视图(View)层。
数据访问层:使用JDBC来访问数据库,并对jdbc进行了简单的封装,使用Template mothod模式和回调接口大大减少了对jdbc的低级操作。其中JdbcTemplate类提供了使用jdbc访问数据库的模板,提供了queryForObject和queryForList方法来分别获取查询到的对象和对象的聚集,execute方法来更新、插入、删除操作。提供了(LibraryManageSystem overall design specification LibraryManageSystem uses three layers of Architecture: data access (Data acess) layer, business (business) layer, view (View) layer. Data access layer: using JDBC to access the database, and the JDBC is simply encapsulated, using Template mothod mode and callback interface greatly reduces the low-level operation of jdbc. The JdbcTemplate class provides access to the database using JDBC template provides queryForObject and queryForList to get to the object query and object aggregation respectively, execute method to update, insert, delete operation. Provides a RowCallBackHandler interface, can be realized through the interface to provide a callback processing of the query line, use the PreparedStatementCallBack callback interface, to provide for the parameters of PreparedStatement, provides the ORMaping interface, you can easily achieve the mapping)
LibraryManageSystem整体设计说明
LibraryManageSystem 使用了三层的架构:数据访问(Data acess)层、业务(business)层、视图(View)层。
数据访问层:使用JDBC来访问数据库,并对jdbc进行了简单的封装,使用Template mothod模式和回调接口大大减少了对jdbc的低级操作。其中JdbcTemplate类提供了使用jdbc访问数据库的模板,提供了queryForObject和queryForList方法来分别获取查询到的对象和对象的聚集,execute方法来更新、插入、删除操作。提供了(LibraryManageSystem overall design specification LibraryManageSystem uses three layers of Architecture: data access (Data acess) layer, business (business) layer, view (View) layer. Data access layer: using JDBC to access the database, and the JDBC is simply encapsulated, using Template mothod mode and callback interface greatly reduces the low-level operation of jdbc. The JdbcTemplate class provides access to the database using JDBC template provides queryForObject and queryForList to get to the object query and object aggregation respectively, execute method to update, insert, delete operation. Provides a RowCallBackHandler interface, can be realized through the interface to provide a callback processing of the query line, use the PreparedStatementCallBack callback interface, to provide for the parameters of PreparedStatement, provides the ORMaping interface, you can easily achieve the mapping)
相关搜索: javaEE实例
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.