org.objectweb.jonas.jdbc
Class MetaDataImpl

java.lang.Object
  extended by org.objectweb.jonas.jdbc.MetaDataImpl
All Implemented Interfaces:
javax.resource.spi.ManagedConnectionMetaData

public class MetaDataImpl
extends java.lang.Object
implements javax.resource.spi.ManagedConnectionMetaData

Description of the MetaDataImpl. This is the DatabaseMetadata for the current JDBC connection.

Author:
Eric Hardesty

Constructor Summary
MetaDataImpl(ManagedConnectionImpl _mcon)
           
 
Method Summary
 java.lang.String getEISProductName()
          Returns the JDBC Product name
 java.lang.String getEISProductVersion()
          Returns the JDBC Product version
 int getMaxConnections()
          Returns maximum limit on number of active concurrent connections that this JDBC instance can support across client processes.
 java.lang.String getUserName()
          Returns the name of the user associated with the JdbcRaManagedConnection instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataImpl

public MetaDataImpl(ManagedConnectionImpl _mcon)
             throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException
Method Detail

getEISProductName

public java.lang.String getEISProductName()
                                   throws javax.resource.ResourceException
Returns the JDBC Product name

Specified by:
getEISProductName in interface javax.resource.spi.ManagedConnectionMetaData
Returns:
String Product name of the JDBC instance.
Throws:
javax.resource.ResourceException

getEISProductVersion

public java.lang.String getEISProductVersion()
                                      throws javax.resource.ResourceException
Returns the JDBC Product version

Specified by:
getEISProductVersion in interface javax.resource.spi.ManagedConnectionMetaData
Returns:
String Product version of the JDBC instance
Throws:
javax.resource.ResourceException

getMaxConnections

public int getMaxConnections()
                      throws javax.resource.ResourceException
Returns maximum limit on number of active concurrent connections that this JDBC instance can support across client processes.

Specified by:
getMaxConnections in interface javax.resource.spi.ManagedConnectionMetaData
Returns:
int of maximum limit for number of active concurrent connections. 0 is an unlimited number of connections
Throws:
javax.resource.ResourceException

getUserName

public java.lang.String getUserName()
                             throws javax.resource.ResourceException
Returns the name of the user associated with the JdbcRaManagedConnection instance. The name corresponds to the resource principal under whose security context, a connection to the DB has been established.

Specified by:
getUserName in interface javax.resource.spi.ManagedConnectionMetaData
Returns:
String name of the user
Throws:
javax.resource.ResourceException