com.mchange.v1.db.sql
Class DriverManagerDataSource

java.lang.Object
  extended by com.mchange.v1.db.sql.DriverManagerDataSource
All Implemented Interfaces:
Serializable, Wrapper, Referenceable, CommonDataSource, DataSource

Deprecated. use com.mchange.v2.c3p0.DriverManagerDataSource

public class DriverManagerDataSource
extends Object
implements DataSource, Serializable, Referenceable

See Also:
Serialized Form

Nested Class Summary
static class DriverManagerDataSource.DmdsObjectFactory
          Deprecated.  
 
Constructor Summary
DriverManagerDataSource(String jdbcUrl)
          Deprecated.  
DriverManagerDataSource(String jdbcUrl, String dfltUser, String dfltPassword)
          Deprecated.  
 
Method Summary
 Connection getConnection()
          Deprecated.  
 Connection getConnection(String username, String password)
          Deprecated.  
 int getLoginTimeout()
          Deprecated.  
 PrintWriter getLogWriter()
          Deprecated.  
 Logger getParentLogger()
          Deprecated.  
 Reference getReference()
          Deprecated.  
 boolean isWrapperFor(Class<?> iface)
          Deprecated.  
 void setLoginTimeout(int seconds)
          Deprecated.  
 void setLogWriter(PrintWriter out)
          Deprecated.  
<T> T
unwrap(Class<T> iface)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverManagerDataSource

public DriverManagerDataSource(String jdbcUrl,
                               String dfltUser,
                               String dfltPassword)
Deprecated. 

DriverManagerDataSource

public DriverManagerDataSource(String jdbcUrl)
Deprecated. 
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Deprecated. 
Specified by:
getConnection in interface DataSource
Throws:
SQLException

getConnection

public Connection getConnection(String username,
                                String password)
                         throws SQLException
Deprecated. 
Specified by:
getConnection in interface DataSource
Throws:
SQLException

getLogWriter

public PrintWriter getLogWriter()
                         throws SQLException
Deprecated. 
Specified by:
getLogWriter in interface CommonDataSource
Throws:
SQLException

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws SQLException
Deprecated. 
Specified by:
setLogWriter in interface CommonDataSource
Throws:
SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
Deprecated. 
Specified by:
getLoginTimeout in interface CommonDataSource
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int seconds)
                     throws SQLException
Deprecated. 
Specified by:
setLoginTimeout in interface CommonDataSource
Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException
Deprecated. 
Specified by:
isWrapperFor in interface Wrapper
Throws:
SQLException

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
Deprecated. 
Specified by:
unwrap in interface Wrapper
Throws:
SQLException

getReference

public Reference getReference()
                       throws NamingException
Deprecated. 
Specified by:
getReference in interface Referenceable
Throws:
NamingException

getParentLogger

public Logger getParentLogger()
                       throws SQLFeatureNotSupportedException
Deprecated. 
Throws:
SQLFeatureNotSupportedException