LazyAssociatableConnectionManager (Java EE 5)

Java EE API


javax.resource.spi Interface LazyAssociatableConnectionManager


public interface LazyAssociatableConnectionManager


这是一个混合接口,ConnectionManager 实现可以有选择地实现。此接口的实现必须支持延时连接关联优化。
英文文档:

This is a mix-in interface that may be optionally implemented by a ConnectionManager implementation. An implementation of this interface must support the lazy connection association optimization.

Version:
1.0
Author:
Ram Jeyaraman

Method Summary
 void
 

Method Detail

public void associateConnection(Object connection, ManagedConnectionFactory mcf, ConnectionRequestInfo cxReqInfo) throws ResourceException
此方法由资源适配器(能够进行延时连接关联优化)调用,以便延时将连接对象与 ManagedConnection 实例关联。
connection 要关联的连接对象。
mcf 最初用于创建连接对象的 ManagedConnectionFactory 实例。
cxReqInfo 连接请求信息。该信息必须与最初用来创建连接对象的信息相同。
ThrowsResourceException: 一般异常。
ThrowsApplicationServerInternalException: 特定于应用服务器的异常。
ThrowsSecurityException: 与安全有关的错误。
ThrowsResourceAllocationException: 无法为连接请求分配系统资源。
ThrowsResourceAdapterInternalException: 与资源适配器有关的错误情况。
英文文档:

associateConnection

void associateConnection(Object connection,
                         ManagedConnectionFactory mcf,
                         ConnectionRequestInfo cxReqInfo)
                         throws ResourceException
This method is called by a resource adapter (that is capable of lazy connection association optimization) in order to lazily associate a connection object with a ManagedConnection instance.

Parameters:
connection - the connection object that is to be associated.
mcf - The ManagedConnectionFactory instance that was originally used to create the connection object.
cxReqInfo - connection request information. This information must be the same as that used to originally create the connection object.
Throws:
ResourceException - Generic exception.
ApplicationServerInternalException - Application server specific exception.
SecurityException - Security related error.
ResourceAllocationException - Failed to allocate system resources for connection request.
ResourceAdapterInternalException - Resource adapter related error condition.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!