ResourceAdapterMetaData (Java EE 5)

Java EE API


javax.resource.cci Interface ResourceAdapterMetaData


public interface ResourceAdapterMetaData


接口 javax.resource.cci.ResourceAdapterMetaData 提供有关资源适配器实现的功能的信息。注意,此接口不提供通过资源适配器连接的 EIS 实例的信息。

CCI 客户端使用 ConnectionFactory.getMetaData 获取有关资源适配器的元数据信息。getMetaData 方法不要求建立对 EIS 实例的活动连接。

可以扩展 ResourceAdapterMetaData,以提供更多特定于资源适配器实现的详细信息。

英文文档:

The interface javax.resource.cci.ResourceAdapterMetaData provides information about capabilities of a resource adapter implementation. Note that this interface does not provide information about an EIS instance that is connected through the resource adapter.

A CCI client uses a ConnectionFactory.getMetaData to get metadata information about the resource adapter. The getMetaData method does not require that an active connection to an EIS instance should have been established.

The ResourceAdapterMetaData can be extended to provide more information specific to a resource adapter implementation.

Since:
0.8
Version:
0.8
Author:
Rahul Sharma
See Also:
ConnectionFactory

Method Summary
 String
 String
 String
 String
 String[]
 String
 boolean
 boolean
 boolean
 

Method Detail

public String getAdapterVersion()
获取资源适配器的版本。
return 表示资源适配器版本的字符串
英文文档:

getAdapterVersion

String getAdapterVersion()
Gets the version of the resource adapter.

Returns:
String representing version of the resource adapter

public String getAdapterVendorName()
获取已提供资源适配器的供应商名称。
return 代表已提供资源适配器的供应商名称的字符串
英文文档:

getAdapterVendorName

String getAdapterVendorName()
Gets the name of the vendor that has provided the resource adapter.

Returns:
String representing name of the vendor that has provided the resource adapter

public String getAdapterName()
获取资源适配器的工具可显示名称。
return 表示资源适配器名称的字符串
英文文档:

getAdapterName

String getAdapterName()
Gets a tool displayable name of the resource adapter.

Returns:
String representing the name of the resource adapter

public String getAdapterShortDescription()
获取资源适配器的工具可显示简短描述。
return 描述资源适配器的字符串
英文文档:

getAdapterShortDescription

String getAdapterShortDescription()
Gets a tool displayable short desription of the resource adapter.

Returns:
String describing the resource adapter

public String getSpecVersion()
返回资源适配器支持的连接器架构规范版本的字符串表示。
return 表示支持的连接器架构版本的字符串
英文文档:

getSpecVersion

String getSpecVersion()
Returns a string representation of the version of the connector architecture specification that is supported by the resource adapter.

Returns:
String representing the supported version of the connector architecture

public String[] getInteractionSpecsSupported()
返回此资源适配器的 CCI 实现支持的 InteractionSpec 类型的完全限定名称数组。注意,完全限定类名称是 InteractionSpec 的实现类。工具供应商使用此方法查找有关支持的 InteractionSpec 类型的信息。如果 CCI 实现未定义特定的 InteractionSpec 类型,则该方法应该返回长度为 0 的数组。
return 此资源适配器的 CCI 实现支持的 InteractionSpec 类的完全限定类名称数组
See also javax.resource.cci.InteractionSpec
英文文档:

getInteractionSpecsSupported

String[] getInteractionSpecsSupported()
Returns an array of fully-qualified names of InteractionSpec types supported by the CCI implementation for this resource adapter. Note that the fully-qualified class name is for the implementation class of an InteractionSpec. This method may be used by tools vendor to find information on the supported InteractionSpec types. The method should return an array of length 0 if the CCI implementation does not define specific InteractionSpec types.

Returns:
Array of fully-qualified class names of InteractionSpec classes supported by this resource adapter's CCI implementation
See Also:
InteractionSpec

public boolean supportsExecuteWithInputAndOutputRecord()
如果 Interaction 接口的实现类实现 public boolean execute(InteractionSpec ispec, Record input, Record output) 方法,则返回 true;否则该方法返回 false。
return 一个 boolean 值,取决于方法支持
See also javax.resource.cci.Interaction
英文文档:

supportsExecuteWithInputAndOutputRecord

boolean supportsExecuteWithInputAndOutputRecord()
Returns true if the implementation class for the Interaction interface implements public boolean execute(InteractionSpec ispec, Record input, Record output) method; otherwise the method returns false.

Returns:
boolean depending on method support
See Also:
Interaction

public boolean supportsExecuteWithInputRecordOnly()
如果 Interaction 接口的实现类实现 public Record execute(InteractionSpec ispec, Record input) 方法,则返回 true;否则该方法返回 false。
return 一个 boolean 值,取决于方法支持
See also javax.resource.cci.Interaction
英文文档:

supportsExecuteWithInputRecordOnly

boolean supportsExecuteWithInputRecordOnly()
Returns true if the implementation class for the Interaction interface implements public Record execute(InteractionSpec ispec, Record input) method; otherwise the method returns false.

Returns:
boolean depending on method support
See Also:
Interaction

public boolean supportsLocalTransactionDemarcation()
如果资源适配器实现 LocalTransaction 接口,并且支持通过 LocalTransaction 接口在底层 EIS 实例上进行本地事务划分,则返回 true。
return 如果资源适配器支持通过 LocalTransaction 接口进行资源管理器本地事务划分,则返回 true;否则返回 false
See also javax.resource.cci.LocalTransaction
英文文档:

supportsLocalTransactionDemarcation

boolean supportsLocalTransactionDemarcation()
Returns true if the resource adapter implements the LocalTransaction interface and supports local transaction demarcation on the underlying EIS instance through the LocalTransaction interface.

Returns:
true if resource adapter supports resource manager local transaction demarcation through LocalTransaction interface; false otherwise
See Also:
LocalTransaction


Submit a bug or feature

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

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

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