ConnectionMetaData (Java EE 5)

Java EE API


javax.resource.cci Interface ConnectionMetaData


public interface ConnectionMetaData


接口 ConnectionMetaData 提供有关通过 Connection 实例连接的 EIS 实例的信息。组件调用方法 Connection.getMetaData 获取 ConnectionMetaData 实例。
英文文档:

The interface ConnectionMetaData provides information about an EIS instance connected through a Connection instance. A component calls the method Connection.getMetaData to get a ConnectionMetaData instance.

Version:
0.8
Author:
Rahul Sharma
See Also:
Connection, ResultSetInfo

Method Summary
 String
 String
 String
 

Method Detail

public String getEISProductName() throws ResourceException
返回通过生成此元数据的 Connection 连接的底层 EIS 实例的产品名称。
return EIS 实例的产品名称
ThrowsResourceException: 无法获取 EIS 实例的信息
英文文档:

getEISProductName

String getEISProductName()
                         throws ResourceException
Returns product name of the underlying EIS instance connected through the Connection that produced this metadata.

Returns:
Product name of the EIS instance
Throws:
ResourceException - Failed to get the information for the EIS instance

public String getEISProductVersion() throws ResourceException
返回底层 EIS 实例的产品版本。
return EIS 实例的产品版本。
ThrowsResourceException: 无法获取 EIS 实例的信息
英文文档:

getEISProductVersion

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

Returns:
Product version of an EIS instance.
Throws:
ResourceException - Failed to get the information for the EIS instance

public String getUserName() throws ResourceException
返回底层 EIS 实例已知的活动连接的用户名。该名称对应于安全上下文下建立了对 EIS 实例的连接的资源主体。
return 代表用户名的字符串
ThrowsResourceException: 无法获取 EIS 实例的信息
英文文档:

getUserName

String getUserName()
                   throws ResourceException
Returns the user name for an active connection as known to the underlying EIS instance. The name corresponds the resource principal under whose security context a connection to the EIS instance has been established.

Returns:
String representing the user name
Throws:
ResourceException - Failed to get the information for the EIS instance


Submit a bug or feature

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

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

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