com.mulesoft.adapter.ra
Class SPIManagedConnectionMetaData

java.lang.Object
  extended by com.mulesoft.adapter.ra.SPIManagedConnectionMetaData
All Implemented Interfaces:
javax.resource.spi.ManagedConnectionMetaData

public class SPIManagedConnectionMetaData
extends Object
implements javax.resource.spi.ManagedConnectionMetaData

SpiManagedConnectionMetaData returns descriptive and configuration information related to a given managed connection as specified by the JCA 1.0 ManagedConnectionMetaData interface.


Constructor Summary
SPIManagedConnectionMetaData(SPIManagedConnection mc)
          Constructs the managed connection meta data object.
 
Method Summary
 String getEISProductName()
          Returns the product name of the connected external system (SPI JCA 1.0)
 String getEISProductVersion()
          Returns the product version of the connected external system (SPI JCA 1.0)
 int getMaxConnections()
          Returns the maximum number of concurrently opened physical connections.
 String getUserName()
          Returns the userName which is used in the related managed connection for the physical connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPIManagedConnectionMetaData

public SPIManagedConnectionMetaData(SPIManagedConnection mc)
Constructs the managed connection meta data object. (SPI JCA 1.0)

Parameters:
mc - Managed connection for which this meta data object is created
Method Detail

getEISProductName

public String getEISProductName()
                         throws javax.resource.ResourceException
Returns the product name of the connected external system (SPI JCA 1.0)

Specified by:
getEISProductName in interface javax.resource.spi.ManagedConnectionMetaData
Returns:
The product name of the connected external system
Throws:
javax.resource.ResourceException

getEISProductVersion

public String getEISProductVersion()
                            throws javax.resource.ResourceException
Returns the product version of the connected external system (SPI JCA 1.0)

Specified by:
getEISProductVersion in interface javax.resource.spi.ManagedConnectionMetaData
Returns:
The product version of the connected external system
Throws:
javax.resource.ResourceException

getMaxConnections

public int getMaxConnections()
                      throws javax.resource.ResourceException
Returns the maximum number of concurrently opened physical connections. Since there is no reasonable number for concurrently opened files this method returns always 0 as required by the JCA specification. (SPI JCA 1.0)

Specified by:
getMaxConnections in interface javax.resource.spi.ManagedConnectionMetaData
Returns:
Always 0, i.e. number is unlimited or unknown
Throws:
javax.resource.ResourceException

getUserName

public String getUserName()
                   throws javax.resource.ResourceException
Returns the userName which is used in the related managed connection for the physical connection. (SPI JCA 1.0)

Specified by:
getUserName in interface javax.resource.spi.ManagedConnectionMetaData
Returns:
userName as string, might be null if not set
Throws:
javax.resource.spi.IllegalStateException - if the related managed connection is already destroyed
javax.resource.ResourceException


Copyright © 2012. All Rights Reserved.