ConnectionRequestInfo (Java EE 5)

Java EE API


javax.resource.spi Interface ConnectionRequestInfo


public interface ConnectionRequestInfo


ConnectionRequestInfo 接口使资源适配器能够跨连接请求流传递其特定于请求的数据结构。资源适配器扩展此空接口,以支持其连接请求的数据结构。

通常使用允许资源适配器处理应用程序组件指定的每个连接请求属性(例如,客户端 ID、语言)。应用服务器将这些属性传回给对资源适配器调用的 match/createManagedConnection。在连接请求流期间,这些属性对于应用服务器来说仍然是不透明的。

当 ConnectionRequestInfo 到达 ManagedConnectionFactory 实例上的 match/createManagedConnection 方法之后,资源适配器使用在每个请求上附加的此信息创建连接和进行匹配。

英文文档:

The ConnectionRequestInfo interface enables a resource adapter to pass its own request specific data structure across the connection request flow. A resource adapter extends the empty interface to supports its own data structures for connection request.

A typical use allows a resource adapter to handle application component specified per-connection request properties (example - client ID, language). The application server passes these properties back across to match/createManagedConnection calls on the resource adapter. These properties remain opaque to the application server during the connection request flow.

Once the ConnectionRequestInfo reaches match/createManagedConnection methods on the ManagedConnectionFactory instance, resource adapter uses this additional per-request information to do connection creation and matching.

Version:
0.8
Author:
Rahul Sharma
See Also:
ManagedConnectionFactory, ManagedConnection

Method Summary
 boolean
 int
 

Method Detail

public boolean equals(Object other)
检查此实例是否等于另一个实例。由于 connectionRequestInfo 是特定于资源适配器定义的,因此资源适配器需要实现此方法。质量情况特定于资源适配器。
return 如果两个实例相等,则返回 true。
英文文档:

equals

boolean equals(Object other)
Checks whether this instance is equal to another. Since connectionRequestInfo is defined specific to a resource adapter, the resource adapter is required to implement this method. The conditions for equality are specific to the resource adapter.

Overrides:
equals in class Object
Returns:
True if the two instances are equal.

public int hashCode()
返回 ConnectionRequestInfo 的哈希码。
return 此实例的哈希码
英文文档:

hashCode

int hashCode()
Returns the hashCode of the ConnectionRequestInfo.

Overrides:
hashCode in class Object
Returns:
hash code os this instance


Submit a bug or feature

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

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

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