If the script successfully connects to the database, it simply returns the database connection handle to the caller.
如果该脚本成功地连接到数据库,那么只需向调用者返回数据库连接句柄。
This access implies that every call of getConnection returns a connection handle whose physical connection is solely for the requesting user.
此访问隐含每次调用getConnection 都返回一个连接句柄,该连接句柄的物理连接单独用于请求用户。
When the connection handle notifies the connection manager that it has been closed, the managed connection is cleaned up and returned to the pool.
当连接句柄通知连接管理器它已关闭时,托管的连接就被清除并返回池中。
Rather than reassociating the connection handle with the managed connection the next time a method is called, the optimization uses lazy association.
这种优化使用惰性关联,而不是在下次调用方法时重新将连接句柄与托管连接关联。
The factory class keeps a static map of the threads that have been connected and can either return the existing connection handle, or create and store the connection handle when called by a thread.
工厂类保留已连接的线程的静态映射,可以在线程进行调用时返回现有连接句柄,或创建并存储连接句柄。
The factory class keeps a static map of the threads that have been connected and can either return the existing connection handle, or create and store the connection handle when called by a thread.
工厂类保留已连接的线程的静态映射,可以在线程进行调用时返回现有连接句柄,或创建并存储连接句柄。
应用推荐