ManagedConnectionMetaData (Java EE 5)

Java EE API


javax.resource.spi Interface ManagedConnectionMetaData


public interface ManagedConnectionMetaData


ManagedConnectionMetaData 接口提供与 ManagedConnection 实例关联的底层 EIS 实例的有关信息。应用服务器使用此信息获取有关连接的 EIS 实例的运行时信息。

方法 ManagedConnection.getMetaData 返回一个 ManagedConnectionMetaData 实例。

英文文档:

The ManagedConnectionMetaData interface provides information about the underlying EIS instance associated with a ManagedConnection instance. An application server uses this information to get runtime information about a connected EIS instance.

The method ManagedConnection.getMetaData returns a ManagedConnectionMetaData instance.

Version:
0.8
Author:
Rahul Sharma
See Also:
ManagedConnection

Method Summary
 String
 String
 int
 String
 

Method Detail

public String getEISProductName() throws ResourceException
返回通过 ManagedConnection 连接的底层 EIS 实例的产品名称。
return EIS 实例的产品名称。
英文文档:

getEISProductName

String getEISProductName()
                         throws ResourceException
Returns Product name of the underlying EIS instance connected through the ManagedConnection.

Returns:
Product name of the EIS instance.
Throws:
ResourceException

public String getEISProductVersion() throws ResourceException
返回通过 ManagedConnection 连接的底层 EIS 实例的产品版本。
return EIS 实例的产品版本
英文文档:

getEISProductVersion

String getEISProductVersion()
                            throws ResourceException
Returns product version of the underlying EIS instance connected through the ManagedConnection.

Returns:
Product version of the EIS instance
Throws:
ResourceException

public int getMaxConnections() throws ResourceException
返回 EIS 实例可以跨客户端过程支持的活动并发连接的最大限制数量。如果 EIS 实例不了解任何此类限制(或没有此类限制),则它返回 0。
return 活动并发连接的最大限制数量
英文文档:

getMaxConnections

int getMaxConnections()
                      throws ResourceException
Returns maximum limit on number of active concurrent connections that an EIS instance can support across client processes. If an EIS instance does not know about (or does not have) any such limit, it returns a 0.

Returns:
Maximum limit for number of active concurrent connections
Throws:
ResourceException

public String getUserName() throws ResourceException
返回与 ManagedConnection 实例关联的用户名称。该名称对应于安全上下文下建立了对 EIS 实例的连接的资源主体。
return 用户名称
英文文档:

getUserName

String getUserName()
                   throws ResourceException
Returns name of the user associated with the ManagedConnection instance. The name corresponds to the resource principal under whose whose security context, a connection to the EIS instance has been established.

Returns:
name of the user
Throws:
ResourceException


Submit a bug or feature

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

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

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