以上连接代码相当简单。
所有通用的连接代码都已经转移到父类中了。
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.
需要编写的第一个Python代码是数据库连接代码。
The first Python code you need to write is the database connection code.
这些技术是单独的组件,必须通过连接代码连接在一起。
These technologies are separate components that must be brought together by connecting code.
最后的结果就是现在我们用报告服务可以连接代码,特性计划和缺陷跟踪。
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.
另一个有趣的区别是连接支持的代码。
The other interesting difference is the code for connection support.
这将导致在执行可利用的代码前任何连接尝试都失败。
This will cause any connection attempts to fail before the vulnerable code can be exercised.
在清单1中,可以看到打开不同连接类型的代码。
In Listing 1, you can see the code to open various connection types.
注意,这个示例中没有征用当前事务中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.
不存在将连接保持在定制代码中的现成的方法。
There was no obvious way of keeping the connection persistent within custom code.
实际上可以将处理数据源配置和连接的代码打包成一个工具类(留给读者作为练习)。
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).
大多数业务程序员都不愿意,为了使用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.
这样可简化连接两端的代码,但会导致同时打开多个连接。
This makes the code at either end of the connection simpler — although it does cause more connections to be open at once.
可以自由地添加连接器代码需要的任意数量的类,这些类应该打包进连接器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.
要编译并连接main代码,可以使用下面的命令行。
To compile and link the main code, use the following command line.
此外,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.
下面是用于创建MQseriesQueueConnectionFactory和获取特定队列管理器连接的样本代码。
Here's the sample code to create an MQSeries QueueConnectionFactory and acquire a connection to a specific queue manager.
应用推荐