所有通用的连接代码都已经转移到父类中了。
All the generic, boilerplate connectivity code has moved into the parent class.
连接代码隐藏在应用程序中,因此无法被重用。
The connectivity code is buried in the applications, so it can't be reused.
最后的结果就是现在我们用报告服务可以连接代码,特性计划和缺陷跟踪。
The upshot of this is that we now can strong linkage between code, feature planning, and bug tracking, all with reporting services that are just far and away the best that I've ever seen.
上述代码充当的是到CouchDB的连接代码并且包含使用此数据库所需的所有相关类。
This code serves as your connection code to CouchDB and includes all the relevant classes that you'll need to work with the database.
有了建模工具的支持,您就可以自动生成构件与所有需要的构建文件之间的连接代码,以集合构件。
With support from the modeling tool you can automatically generate the glue code between the components and all the necessary build files to assemble the component.
二进制安装总的来说比源码安装要简单。因为它们不需要源模块,也不需要花费计算机资源编译及连接代码。
Binary installations, in general, are easier than source installations, because they don't require source modules and spending computer resources compiling and linking the code.
不管连接哪种数据库,连接代码都应该放置在一个名称类似Connection . py的文件中,且该文件存储在一些通常可访问的位置中。
Whatever database you're connected to, the connection code should go in a file called something like Connection.py, stored in some commonly accessible location.
由于本例使用JDBC,应该在任何支持的SQL数据库下都能正常运行,如DB 2Express - C,只需要对连接代码做最小程度的修改。
Because the example USES JDBC, it should work with any supported SQL database, such as DB2 Express-C, with only minor changes to the connection code.
和前面一样,该代码首先连接到队列管理器,并打开队列句柄,但这次是为了使用缺省队列定义接收消息。
As before, the code begins by connecting to the queue manager and opening the queue handle, but this time for retrieving messages using the default queue definition.
甚至在编写任何门户代码或者将其连接到后台基础设施之前即开始压力测试。
Begin stress testing even before you have any portal code written or have connected it to backend infrastructure.
注意,这个示例中没有征用当前事务中jdbc连接的代码—容器会为我们完成这个任务。
Notice that there is no code in this example to enlist the JDBC connections in the current transaction — the container does this for us.
SQLJ可以通过在编译时使用数据库连接,对代码执行语法和语义上的检查。
SQLJ can perform syntactic and semantic checking on the code, using database connections at compile time.
实际上可以将处理数据源配置和连接的代码打包成一个工具类(留给读者作为练习)。
In fact, you might want to bundle up the code you write to handle data source configuration and connection into a utility class (that's left for you as an exercise).
清单4显示了在应用程序模块中查找创建的数据库连接池所需的代码。
Listing 4 shows the code in the application module needed to lookup the created database connection pool.
它用了三条语句、不足20行的代码连接到了数据库,从表中选定了每一行,并将数据作为xml导出。
In three statements and fewer than 20 lines of code, it connects to the database, selects every row from the table, and exports the data as XML.
大多数业务程序员都不愿意,为了使用JDBCSPI而编写他们自己的数据源和连接池代码,并实现一个命名的服务器。
Most business programmers cannot justify the time it takes to write their own datasource and connection pool code plus implement a naming server so the JDBC SPI can be used.
在可行的地方,它可以连接到核心代码和其他平台中。
It is ported back into core code and other platforms, where feasible.
以下代码连接编目数据库。
依我看,它提供了一个连接池把传入代码包装在纤程当中,等到连接可用的时候再恢复纤程。
As I see, it allows to pass code wrapped in Fibers to a pool of connections, which then resumes the Fibers as connections become available.
事件气泡技巧可用于断开小组件的视图结构与控制器代码之间的连接。
The event bubbling technique provides the ability to disconnect the view structure of the widget from the controller code.
这样可简化连接两端的代码,但会导致同时打开多个连接。
This makes the code at either end of the connection simpler — although it does cause more connections to be open at once.
在执行时,当建立数据库连接时,确定用户应用程序代码页,而且它只在连接期间有效。
At execution time, the user application code page is established when a database connection is made, and it is in effect for the duration of the connection.
可以自由地添加连接器代码需要的任意数量的类,这些类应该打包进连接器eJB中。
You are certainly free to include any number of other classes that your connector code requires, which you should package into the connector EJB accordingly.
它所做的全部工作就是以尽可能少的忙乱将Web服务器与您的Python代码连接。
All it does is connect the Web server to your Python code with as little fuss as possible.
此外,Axis和其他解决方案中用于建立HTTP连接的底层代码也是基于流的。
Additionally, the underlying code for making HTTP connections in Axis and others solutions is also stream based.
清单1显示了应用程序示例中用NSURLRequest初始化连接的代码。
Listing 1 shows the code used to initialize a connection with NSURLRequest in the sample application.
其它最新变化都是在RC2里面完成的,诸如“请求伪造保护”的改进和ActiveRecord连接池代码的调优。
Some last minute changes were done in RC2, namely the improvement of the request forgery protection and tuning of the ActiveRecord connection pooling code.
下面是用于创建MQseriesQueueConnectionFactory和获取特定队列管理器连接的样本代码。
Here's the sample code to create an MQSeries QueueConnectionFactory and acquire a connection to a specific queue manager.
减少代码有很多好处,包括性能(连接所涉及的代码量对于脚本而言非常值得考虑),但也会减少我们以往的交织依赖关系。
Reducing the code had many benefits, including performance (code size over the wire is where it really counts with script) but also in reducing the tangled dependencies we used to have.
在安装Derby数据库软件之后,可以使用本文附带的示例代码连接Derby数据库,见清单1。
After you have the Derby database software installed, you can use the sample code available with this article to connect to a Derby database, as shown in Listing 1.
应用推荐