当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: http://www.sina.com.cn 2004年09月08日 10:38 天极yesky 文/leisureful DriverManager 类是 JDBC 的管理层,作用于用户和驱动程序之间。
 

 

    摘要: chapter 6. creating a cmp entity beanthis chapter covers how to create a container managed persistence (cmp) ejb component. we will create two cmp beans, item and supplier as shown below. the item be......
    摘要: chapter 8. creating web clientsthis chapter describes how to create web clients in the client tier/presentation tier to access or otherwise communicate with the business tier. servlets and jsp pages ......


Java数据库接口JDBC基础教程之驱动设置
http://www.sina.com.cn 2004年09月08日 10:38 天极yesky   文/leisureful   drivermanager 类是 jdbc 的管理层,作用于用户与驱动程序之间.它跟踪可用的驱动程序,并在数据库与相应驱动程序之间建立连接.另外,drivermanager 类也处理诸如驱动程序登录时间限制及登录与跟踪消息的显示等事务.   对于简单的应用程序,一般程序员需要在此类中直接使用的唯一方法是 drivermanager.getconnection.正如名称所示,该方法将建立与数据库的连接.jdbc 允许用户调用 dr 用uc每月免费发短信 新浪点点通天气 为什么美国人打错靶? 1拍网caiso腕表5.8折 ivermanager 的方法 getdriver.getdrivers 与 registerdriver 及 driver 的方法 connect.但多数情况下,让 drivermanager 类管理建立连接的细节为上策.   1.跟踪可用驱动程序   drivermanager 类包含一列 driver 类,它们已通过调用方法 drivermanager.registerdriver 对自己进行了注册.所有 driver 类都必须包含有一个静态部分.它创建该类的实例,然后在加载该实例时 drivermanager 类进行注册.这样,用户正常情况下将不会直接调用 drivermanager.registerdriver;而是在加载驱动程序时由驱动程序自动调用.加载 driver 类,然后自动在 drivermanager 中注册的方式有两种:   通过调用方法 class.forname.这将显式地加载驱动程序类.由于这与外部设置无关,因此推荐使用这种加载驱动程序的方法.
...   下一页
 ·使用ejb3.o简化ejb开发(一)    »显示摘要«
    摘要: 使用ejb3.o简化ejb开发 原著:debu panda我们引入ejb来构造分布式的组件。它诞生之时是为了解决所有corba的问题和复杂性。经历过几次重要的版本更新和增加许多特性之后,ejb已经成为了j2ee的核心。在早期,很多开发人员沉迷于ejb甚至在没有任何意义的情况下在他们的工程中使用ejb。而当他们发现所使用的工程并没有质的变化后,谴责ejb成了一种趋势。开发ejb从来没有变得简单甚至......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE