英语翻译Data Access TechnologiesDatabase access has been part of

英语翻译
Data Access Technologies
Database access has been part of Java since Sun added the Java Database Connectivity (JDBC) API as an add-on to Java 1.0.Since then,Sun has also added Enterprise JavaBeans (EJB) and most recently Java Database Objects (JDO) to Java.That isn't all; Sun is only one of the many organizations supporting database access from Java.Numerous vendors have sprung up over the years to provide JDBC implementations and Object-Relational Mapping (O/R) frameworks for Java.
The good news is that there are a lot of choices for data access.That's also the bad news.In this section we'll sort out the choices by dividing them up into four categories starting with the simplest and ending with the most sophisticated.The five data access technologies,from simplest to most sophisticated are
 JSP tags for SQL
 JDBC
 O/R frameworks
 JDO
 EJB Entity Beans
When you choose a data access technology,you should consider both the nature of the web application that you're developing and the skills of your development and support teams.Generally speaking,if you have simple requirements and a less experienced team,then you should favor the simple end of the spectrum.If you have more complex requirements and a more experienced team you should favor the sophisticated side.Here are some questions to consider:
 Does your application have fairly simple database access requirements?Perhaps you need only to display a couple of reports based on information in a database.For simple applications,you might want to avoid the learning curve,complexity,and overhead of a more sophisticated data access technology.
 Will your application have a complex Java object model that must be persisted to a database?If so,you might find that you really cannot do without the sophisticated automated object-relational mapping capabilities of an O/R framework or of EJB Container Managed Persistence (CMP).
 Is your application one that is highly transactional,requires high availability,and is likely to support a very large number of concurrent users?If so,you might find that you need the
在这个里面
胡周八扯 1年前 已收到1个回答 举报

zz游灵风 幼苗

共回答了19个问题采纳率:100% 举报

数据存取技术
数据库存取是Java的一部分从太阳增加了Java数据库连通性(JDBC) API作为添加物到Java 1.0.从那以后,太阳最近也增加了企业JavaBeans (EJB)和Java数据库对象(JDO)到Java.那不是全部; 太阳只是支持数据库存取从Java的一个许多组织.众多的供营商多年来出现为Java提供JDBC实施和对象关系映射的(O/R)框架.
好消息是有很多选择为数据存取.那也是坏消息.在这个部分我们将通过划分他们整理选择成开始以最简单和结束以最老练的四个类别.五数据存取技术,从最简单到最老练是
JSP tags for SQL
 JDBC
 O/R frameworks
 JDO
 EJB Entity Beans
当您选择数据存取技术时,您应该考虑您开发Web应用程序的本质和您的发展技能并且支持队.一般来说,如果您有简单的要求和一个较不老练的队,然后您应该倾向光谱的简单的结尾.如果您有更加复杂的要求和一个更加老练的队您应该倾向老练边.这要考虑的有些问题:
您的应用是否有相当简单的数据库存取要求?或许您在数据库需要只显示根据信息的两三个报告.为简单的应用,您也许想要避免更加老练的数据存取技术的经验曲线、复杂和天花板.
您的应用是否将有必须坚持对数据库的一个复杂Java对象模型?如果那样,您也许发现您不可能真正地做没有O/R框架的老练自动化的对象关系映射的能力或EJB容器处理了坚持(CMP).
是高度交易上的您的应用一,要求高可及性,并且可能的支持是否是一致用户的非常大数?如果那样,您也许发现您需要.

1年前

5
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.032 s. - webmaster@yulucn.com