com.ibm.j2ca.base
Class WBIResourceAdapterMetadata

java.lang.Object
  extended bycom.ibm.j2ca.base.WBIResourceAdapterMetadata
All Implemented Interfaces:
javax.resource.cci.ResourceAdapterMetaData

public class WBIResourceAdapterMetadata
extends java.lang.Object
implements javax.resource.cci.ResourceAdapterMetaData

WBIResourceAdapterMetadata is a utility class that reduces the number of classes that RA implementations need to provide.


Constructor Summary
WBIResourceAdapterMetadata(java.lang.Object obj, boolean supportsLocalTx)
          Enables metadata to be read from the manifest file based on the package of the object class.
WBIResourceAdapterMetadata(java.lang.String name, java.lang.String vendor, java.lang.String version, boolean supportsLocalTx)
           
 
Method Summary
 java.lang.String getAdapterName()
          Gets the adapter name
 java.lang.String getAdapterShortDescription()
          Gets the short description for the adapter
 java.lang.String getAdapterVendorName()
          Gets the vendor name
 java.lang.String getAdapterVersion()
          Gets the versions of the adapter
 java.lang.String[] getInteractionSpecsSupported()
          Indicates whether the adapter support InteractionSpec
 java.lang.String getSpecVersion()
          Gets the version of the spec
 boolean supportsExecuteWithInputAndOutputRecord()
          Indicates whether the adapter supports execute with input and output records
 boolean supportsExecuteWithInputRecordOnly()
          Indicates whether the adapter supports execute with input records
 boolean supportsLocalTransactionDemarcation()
          Indicates whether the adapter supports local transaction demarcation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WBIResourceAdapterMetadata

public WBIResourceAdapterMetadata(java.lang.String name,
                                  java.lang.String vendor,
                                  java.lang.String version,
                                  boolean supportsLocalTx)

WBIResourceAdapterMetadata

public WBIResourceAdapterMetadata(java.lang.Object obj,
                                  boolean supportsLocalTx)
                           throws javax.resource.ResourceException
Enables metadata to be read from the manifest file based on the package of the object class.

Method Detail

getAdapterName

public java.lang.String getAdapterName()
Gets the adapter name

Specified by:
getAdapterName in interface javax.resource.cci.ResourceAdapterMetaData
Returns:
adapter name

getAdapterShortDescription

public java.lang.String getAdapterShortDescription()
Gets the short description for the adapter

Specified by:
getAdapterShortDescription in interface javax.resource.cci.ResourceAdapterMetaData
Returns:
short description

getAdapterVendorName

public java.lang.String getAdapterVendorName()
Gets the vendor name

Specified by:
getAdapterVendorName in interface javax.resource.cci.ResourceAdapterMetaData
Returns:
vendor name

getAdapterVersion

public java.lang.String getAdapterVersion()
Gets the versions of the adapter

Specified by:
getAdapterVersion in interface javax.resource.cci.ResourceAdapterMetaData
Returns:
adapter version

getInteractionSpecsSupported

public java.lang.String[] getInteractionSpecsSupported()
Indicates whether the adapter support InteractionSpec

Specified by:
getInteractionSpecsSupported in interface javax.resource.cci.ResourceAdapterMetaData
Returns:
true if the adapter supports InteractionSpec

getSpecVersion

public java.lang.String getSpecVersion()
Gets the version of the spec

Specified by:
getSpecVersion in interface javax.resource.cci.ResourceAdapterMetaData
Returns:
version

supportsExecuteWithInputAndOutputRecord

public boolean supportsExecuteWithInputAndOutputRecord()
Indicates whether the adapter supports execute with input and output records

Specified by:
supportsExecuteWithInputAndOutputRecord in interface javax.resource.cci.ResourceAdapterMetaData
Returns:
true if the adapter supports execute with input and output records

supportsExecuteWithInputRecordOnly

public boolean supportsExecuteWithInputRecordOnly()
Indicates whether the adapter supports execute with input records

Specified by:
supportsExecuteWithInputRecordOnly in interface javax.resource.cci.ResourceAdapterMetaData
Returns:
true if the adapter supports execute with input

supportsLocalTransactionDemarcation

public boolean supportsLocalTransactionDemarcation()
Indicates whether the adapter supports local transaction demarcation

Specified by:
supportsLocalTransactionDemarcation in interface javax.resource.cci.ResourceAdapterMetaData
Returns:
true if adapter supports local transaction demarcation