org.objectweb.jonas.jdbc
Class DataSourceImpl

java.lang.Object
  extended by org.objectweb.jonas.jdbc.DataSourceImpl
All Implemented Interfaces:
java.io.Serializable, javax.naming.Referenceable, javax.sql.DataSource

public class DataSourceImpl
extends java.lang.Object
implements javax.sql.DataSource, java.io.Serializable, javax.resource.Referenceable

Description of the DataSourceImpl. This is the dataSource for the JDBC RA.

Author:
Eric Hardesty
See Also:
Serialized Form

Constructor Summary
DataSourceImpl(ManagedConnectionFactoryImpl _mcf, javax.resource.spi.ConnectionManager _cm)
           
 
Method Summary
 java.sql.Connection getConnection()
           
 java.sql.Connection getConnection(java.lang.String user, java.lang.String pwd)
           
 int getLoginTimeout()
           
 java.io.PrintWriter getLogWriter()
           
 java.lang.String getMapperName()
           
 javax.naming.Reference getReference()
           
 void setLoginTimeout(int _loginTimeout)
           
 void setLogWriter(java.io.PrintWriter _pw)
           
 void setReference(javax.naming.Reference _ref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceImpl

public DataSourceImpl(ManagedConnectionFactoryImpl _mcf,
                      javax.resource.spi.ConnectionManager _cm)
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Specified by:
getConnection in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection(java.lang.String user,
                                         java.lang.String pwd)
                                  throws java.sql.SQLException
Specified by:
getConnection in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws java.sql.SQLException
Specified by:
getLoginTimeout in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws java.sql.SQLException
Specified by:
getLogWriter in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getReference

public javax.naming.Reference getReference()
Specified by:
getReference in interface javax.naming.Referenceable

setLoginTimeout

public void setLoginTimeout(int _loginTimeout)
                     throws java.sql.SQLException
Specified by:
setLoginTimeout in interface javax.sql.DataSource
Throws:
java.sql.SQLException

setLogWriter

public void setLogWriter(java.io.PrintWriter _pw)
                  throws java.sql.SQLException
Specified by:
setLogWriter in interface javax.sql.DataSource
Throws:
java.sql.SQLException

setReference

public void setReference(javax.naming.Reference _ref)

getMapperName

public java.lang.String getMapperName()