The object of these experiments was to find the connection, if any, between the two phenomena.
这些实验的目的就是探索这两种现象之间的联系,如果存在着任何联系的话。
In this case, we would mock the query method of the database connection object so that we could just return back the results instead of calling out to the database for them.
在这里,我们可以模拟数据库连接对象的查询方法,这样我们就只需要返回结果,而不需要真正地去查询数据库。
It takes the connection object and a valid SQL query string as parameters.
它的参数是连接对象和一个有效的SQL查询字符串。
Upon successfully connecting to the database, this function returns a connection object, which is required in the subsequent database read and write operations.
如果成功地连接到数据库,这个函数会返回一个连接对象,后续的数据库读写操作需要使用这个对象。
If the connection attributes match the definition of a trusted context object, that connection is referred to as a trusted connection.
如果连接属性与一个可信上下文对象的定义相匹配,则那个连接被称作可信连接。
Now you can pass in an object directly that is compatible with the expected database connection object, and it will use that object instead of creating a new one.
现在您可以直接传入一个对象,它与预期数据库连接对象相兼容,然后直接使用这个对象,而非创建一个新对象。
The object is disconnected from the underlying JDBC connection when waiting for a user request and reconnected when serving a user request.
在等待用户请求时,该对象会断开与底层JDBC连接的连接并在服务于用户请求时重新连接。
A trusted context is a database object defining the set of properties for a connection.
可信任上下文是一个数据库对象,定义了连接的属性。
Data objects should also be closed once the data access part of your application is complete, so that the connection object associated with it is released too.
一旦应用程序的数据访问部分已经完成,还应该关闭数据对象,以便释放与之关联的连接对象。
Connection pooling improves performance as a data source object creates a connection as soon as it is instantiate.
连接池可提高性能,因为一将数据源对象实例化,它就会创建一个连接。
At run time, a factory object can generate a connection, locate the CICS server, and invoke the CICS program at the server.
在运行时,工厂对象可以生成连接、定位CICS服务器和激活服务器上的CICS程序。
First, the program retrieves a queue connection factory by looking up the context object with a queue connection factory name.
首先,这个程序通过查找上下文对象获得一个指定名称的队列连接工厂。
It takes the connection object as a parameter and returns the return code for the function that was executed.
它的参数是连接对象,它返回已经执行的函数的返回码。
A client that needs to use a published object's services will initiate a connection with the object, using the values in the IOR.
需要使用已发布对象服务的客户机将使用IOR中的值来启动与对象的连接。
In this case, you must invoke the commit method on the Connection object if all is well; otherwise, invoke the rollback method if an exception occurs.
在本例中,如果一切正常,您必须调用Connection对象上的commit方法;否则,如果出现异常,则调用rollback方法。
To access the appropriate metadata, you first create a new DatabaseMetaData object from the current JDBC Connection, as shown in the previous example.
如前面的示例所示,为了访问适当的元数据,首先要从当前的JDBCConnection创建一个新的DatabaseMetaData对象。
The following method, in a class called DatabaseExample, takes a database Connection object, reads the records from the database, and prints the values.
下面的方法,在一个被称为DatabaseExample 的类中,使用数据库Connection对象,从数据库中读取记录并打印出数值。
When controlling such a set of interactions, the transactional context is local to the Connection object, and thus to the underlying ConnectionFactory and CICS region that it references.
当控制这样一组交互时,事务上下文对于Connection对象而言是本地的,因此对于基础的ConnectionFactory和它引用的CICS区域而言也是本地的。
Next, obtain database metadata from the Connection object.
接下来,从Connection对象获得数据库元数据。
The first line of this script instantiates a new Sql object by setting the JDBC connection string, username, password, and JDBC driver class.
该脚本的第一行代码实例化了一个新的Sql对象:设置JDBC连接字符串、用户名、密码和 JDBC驱动器类。
The constructor creates a DBManager object to establish a database connection, as discussed earlier, and then acquires an instance of the ProductDAO class.
构造函数将按照前面的描述创建一个DBManager对象以建立数据库连接,然后获得productdao类的实例。
Saying "Chocolate" or "Strawberry" will direct the call flow to the default, else-path connection object, ComingUp.
而说出“Chocolate”或“Strawberry”会将调用流定向到缺省的、其他路径的连接对象——comingup上。
This is the method that gets invoked when a users clicks on a report or reportView object in IBM Cognos Connection.
该方法将在用户在IBMCognosConnection 中单击report或reportView对象时用到。
It takes the MySQL database connection object as a parameter and returns true if the database close operation was successful and false if it failed.
它以MySQL数据库连接对象作为参数;如果数据库关闭操作成功,它就返回true,否则返回false。
You set up a data source object, provide the connection string and query text, and assign the id of the data source to the DataSourceId property of the GridView.
您只需建立一个数据源对象,提供连接字符串和查询文本,为GridView的DataSourceId属性分配数据源id。
You can populate a CachedRowSet using either an existing ResultSet object or by specifying connection information and an SQL query.
您可以通过使用现有的ResultSet对象,或者通过指定连接连接信息和SQL查询,来填充CachedRowSet。
DB2Command - The command object allows for executing any supported SQL statement or stored procedure using a data connection object.
DB 2 Command-该命令对象支持使用数据连接对象执行任何受支持的sql语句或存储过程。
You've used odbc_exec already; it takes in a connection object and an SQL string, fires it all off, and returns a result set object.
前面曾使用过odbc_exec函数,它接受了一个连接对象和一个sql字符串,执行该函数后,会返回一个结果集对象。
Creating this mediator is simple; it merely requires that you pass in a previously defined metadata object and an active database connection (embodied by a ConnectionWrapper object).
创建此中介很简单;只需要传入前面定义的元数据对象和活动的数据库连接(由ConnectionWrapper对象包含)。
It returns a connection object you can use throughout your PHP program. The following code shows an example.
它返回一个您可以在整个php程序中使用的连接对象。
应用推荐