com.mchange.v2.c3p0
Class DriverManagerDataSource

java.lang.Object
  extended bycom.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
      extended bycom.mchange.v2.c3p0.DriverManagerDataSource
All Implemented Interfaces:
javax.sql.DataSource, javax.naming.Referenceable, java.io.Serializable

public final class DriverManagerDataSource
extends com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
implements javax.sql.DataSource

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
description, driverClass, factoryClassLocation, jdbcUrl, pcs, properties, vcs
 
Constructor Summary
DriverManagerDataSource()
           
 
Method Summary
 java.sql.Connection getConnection()
           
 java.sql.Connection getConnection(java.lang.String username, java.lang.String password)
           
 int getLoginTimeout()
           
 java.io.PrintWriter getLogWriter()
           
 java.lang.String getPassword()
           
 java.lang.String getUser()
           
 void setLoginTimeout(int seconds)
           
 void setLogWriter(java.io.PrintWriter out)
           
 void setPassword(java.lang.String password)
           
 void setUser(java.lang.String user)
           
 
Methods inherited from class com.mchange.v2.c3p0.impl.DriverManagerDataSourceBase
addPropertyChangeListener, addVetoableChangeListener, getDescription, getDriverClass, getFactoryClassLocation, getJdbcUrl, getProperties, getReference, removePropertyChangeListener, removeVetoableChangeListener, setDescription, setDriverClass, setFactoryClassLocation, setJdbcUrl, setProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DriverManagerDataSource

public DriverManagerDataSource()
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 username,
                                         java.lang.String password)
                                  throws java.sql.SQLException
Specified by:
getConnection 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

setLogWriter

public void setLogWriter(java.io.PrintWriter out)
                  throws java.sql.SQLException
Specified by:
setLogWriter 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

setLoginTimeout

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

setUser

public void setUser(java.lang.String user)

getUser

public java.lang.String getUser()

setPassword

public void setPassword(java.lang.String password)

getPassword

public java.lang.String getPassword()