毕业论文

打赏
当前位置: 毕业论文 > 外文文献翻译 >

java Struts和Hibernate的结构整合英文文献和中文翻译(3)

时间:2019-08-03 17:47来源:毕业论文
Business Logic Layer: This layer accomplishes the required business of system, provides the required business method to presentation layer. It can receive data from client programs and save them to th


Business Logic Layer: This layer accomplishes the required business of system, provides the required business method to presentation layer. It can receive data from client programs and save them to the storage equipment after proper disposal, read data from the data storage equipment, then send them out to client programs. This layer is composed of Business Objects (BO) such as JavaBean and session EJB.
Data Permanence Layer: This layer is composed of Hibernate that gains data from data source, then generates PO, and passes it to the business logic layer. In Hibernate, the Value Object(VO) acts as PO. 
Data Source Layer: The layer’s another name is database layer, which stores the systematic application data.
The entire system framework may be expressed by JSP-BO-DAO/VO(Hibernate)-DB. The maximal characteristic of system frame is the combination between presentation layer of Struts and data permanence layer of Hibernate. It adopts the multi-layer systematic structure to restrict the expression of application data within corresponding layers, which reduces data coupling among layers and improves the maintainability and expansibility of the overall framework.
.英文翻译
基于Struts和Hibernate的结构整合研究
1.简介
    随着网络技术的飞速发展,分布式企业Web应用技术日益成熟。随着Java技术的广泛应用,Java 2平台企业版(J2EE)由于平台的分层和独立性,正逐渐被大部分公司所接受。J2EE经证实是一个值得信赖的软件开发企业技术,它被IT行业许多重要的公司所支持。但是J2EE也有许多缺陷,比如,价格高,周期长由EJB所导致的实现的复杂性。
    现在,Struts 已经成为基于Java语言最流行的框架,因为它能够对Web应用进行优良的分层和划分。目前,一些大规模的公司在实现封装开发的J2EE中嵌入Struts。但是在Struts框架的模型部分,实现系统与数据库的交互不是很理想,而Hibernate提供的Java类到数据表的映射机制,数据查询和回复等机制,这样实现了对象数据层的持久性。Hibernate 直接摆脱了操作关系型数据库的缺陷。论文网
因此,采用基于Struts和Hibernate集成的多层框架,可以把两者的有点充分发挥,同时也有效解决了传统J2EE的缺陷。
2.基于MVC的Struts框架
    在传统的Web应用中,Java Server Pages(JSP)负责处理所有的事件,比如接收请求,执行业务逻辑,选择下一个页面。这些复杂的时间可能会导致JSP代码的混乱,可能对页面的扩展和文护产生伤害。模型-视图-控制器(MVC)的设计模式把把变成代码分为三个部分,由此可以解决上述的问题。MVC可以实现J2EE应用系统三层或多层低耦合层级。而且它也是实现动态对象内容的方法之一。MVC模型将应用分为三个核心内容:Model,View和Controller。
Struts是MVC的实现过程。它是一个开放源代码的Web应用框架,它使用属于J2EE的Servlet和JSP标记作为实现的一部分。Struts继承了MVC的特点,并基于J2EE进行相应的变化和扩展。Struts使用Java Bean和Action类把Java代码和JSP分开来形成MVC模型,在Model,View和Controller这三部分之间实现数据传输。通过最终配置文件来演示多种类和JSP页面之间的连接关系,从而实现表现层,业务层和数据层的分离。
3.基于ORM的Hibernate框架
与面向对象软件和关系型数据库有关的工作是一项带有数据库连接的复杂任务,因为在关系型数据库的对象展示的数据会存在错误匹配。所以JDBC的开发人员纯粹结构化的查询语句(SQL)将对象模型数据展示映射到一个关系型数据模型以及它的对应的数据库架构。
3.1 Hibernate的介绍
    Hibernate是一个灵活的和强大的对象关系映射(ORM)的从Java类到数据库表映射的解决方案。它是一个强大的,对象关系持久的高性能查询服务。Hibernate允许开发人员在自己的便携式SQL扩展上(Hibernate Query Language(HQL))表述查询。也可以在本地SQL或者在一个面向对象的标准和API接口样例中表述。Hibernate自身使用XML文件来产生映射,因此开发者不需要为此来编写代码。 java Struts和Hibernate的结构整合英文文献和中文翻译(3):http://www.751com.cn/fanyi/lunwen_36765.html
------分隔线----------------------------
推荐内容