JDBC 2.0 provides 2 methods of establishing database connections.
JDBC 2.0提供了两种建立数据库连接的方法。
Therefore, users of JDBC 2 can expect their applications to function correctly under JDBC 3.0.
所以,JDBC 2的用户可以放心,他们的应用程序能在 JDBC 3.0下正确运行。
The observant reader may notice that the statements in the listing are no different than vanilla JDBC 2 code.
细心的读者可能会发现清单中的语句和普通jdbc 2的代码没什么两样。
A limitation of the JDBC 2 specification is that statements that return multiple results must have only one ResultSet open at any given time.
JDBC 2规范的一个局限是,在任意时刻,返回多重结果的语句只能打开一个ResultSet。
The transaction support in JDBC 2 gave developers control over concurrent access to their data, thereby ensuring that persisted data is always in a consistent state.
JDBC 2中的事务支持让开发人员可以控制对数据的并发访问,从而保证持续数据总是保持一致的状态。
The universal JDBC driver is provided in the file db2jcc.jar (type 2 implementation requires a native library).
通用的JDBC驱动程序在文件db2jcc.jar中提供(Type2 的实现则需要一个本机库)。
Figure 2 shows the flow from a JPA application to the database using JDBC.
图2显示了使用JDBC时从JPA应用程序到数据库的流。
In Part 2, we will focus on specific coding techniques and best practices that you can use to optimize the performance of your JDBC DMS and metadata code.
在第2部分中,我们将重点讨论具体编码技术和可以用来优化JDBCDMS和元数据代码性能的最佳实践。
Notice that the console output (Listing 7) displays the same output as the stored procedure call from the JDBC program as shown in Figure 2.
注意操控台输出(代码行7)显示了与访问图2所示jdbc程序存储过程相同的输出。
Originally, there were four types of JDBC drivers, differentiated by their type number: 1, 2, 3, or 4.
原来有4种JDBC驱动程序类型,由它们的类型号区分:1、2、3或4。
This technique, as shown in Listing 2, requires the use of a JDBC driver to implement the connection protocols.
这种技术(见清单2)需要使用JDBC驱动程序实现连接协议。
Instead of specifying the configuration information in this manner, Dolly (and her co-workers) would be better served by using JNDI to find a JDBC DataSource, as shown in Listing 2.
如果不用这种方式指定配置信息,Dolly(以及她的同伴们)使用JNDI来查找JDBCDataSource会更好一些,如清单2所示。
When programming with JTA you have to use the Type 2 or 4 JDBC driver.
在用JTA进行编程时,您必须使用Type2或4JDBC驱动程序。
At Step 2: Map resource references to resources, select jdbc/catabasecms.
步骤2:将资源引用映射到资源,选择jdbc/catabasecms。
Listing 2: Performing a backup using JDBC calls.
清单2:使用JDBC调用执行备份。
The following examples use the SAMPLE database and type 2 CLI JDBC driver on Windows 2000.
下列示例在Windows 2000 上使用SAMPLE数据库和type2CLIJDBC驱动程序。
Using the techniques and configuration described in this article, the Broker can implement coordinated XA transactions working with a DB2 database using the Type 2 JDBC driver.
通过使用本文中描述的技术和配置,Broker可以实现与使用Type2 JDBC驱动程序的DB 2数据库协调工作的xa事务。
To identify the code page for a CLI and JDBC type 2 application, you can use the trace facilities offered by DB2 CLI on Linux, UNIX, and Windows.
为了标识CLI和JDBCtype2应用程序的代码页,您可以使用DB 2 CLIon Linux,UNIX, and Windows所提供的跟踪工具。
See Figure 2 for an example that USES the DB2's CLI-based JDBC driver.
使用DB 2基于CLI的JDBC驱动程序的例子如图2所示。
Depending on the J2EE and DB2 infrastructure implementation, the JNDI data source definition USES JDBC type 2 or JDBC type 4 for Java database connectivity.
根据J2EE和DB 2基础结构实现,JNDI数据源定义使用JDBCtype2或JDBC type4连接数据库。
Depending on the J2EE and DB2 infrastructure implementation the JNDI data source definition USES JDBC type 2 or JDBC type 4 for Java database connectivity.
根据J2EE和DB 2基础结构实现,JNDI数据源定义使用JDBCtype2或JDBC type4连接数据库。
The Universal JDBC Type 2 driver supports distributed transactions using com.ibm.db2.jcc.DB2XADataSource, and connection pooling using com.ibm.db2.jcc.DB2ConnectionPoolDataSource.
通用JDBCType2驱动程序分别使用 com.ibm.db2.jcc.DB2XADataSource和 com.ibm.db2.jcc.DB2ConnectionPoolDataSource来支持分布式事务和连接池。
The coordinated connection must be obtained using the DriverManager interface with the DB2 "App" JDBC Type 2 Driver -- instantiating an instance of the class COM.ibm.db2.jdbc.app.DB2Driver.
必须使用DB2 "App"JDBCType2驱动程序的 DriverManager接口获得协调连接——实例化 COM.ibm.db2.jdbc.app.DB2Driver类的实例。
The coordinated connection must be obtained using the DriverManager interface with the DB2 "App" JDBC Type 2 Driver -- instantiating an instance of the class COM.ibm.db2.jdbc.app.DB2Driver.
必须使用DB2 "App"JDBCType2驱动程序的 DriverManager接口获得协调连接——实例化 COM.ibm.db2.jdbc.app.DB2Driver类的实例。
应用推荐