org.shiftone.ooc.factory
Class DriverDataSource

java.lang.Object
  extended byorg.shiftone.ooc.factory.DriverDataSource
All Implemented Interfaces:
javax.sql.DataSource

public class DriverDataSource
extends java.lang.Object
implements javax.sql.DataSource

Version:
$Revision: 1.5 $
Author:
Jeff Drost

Constructor Summary
DriverDataSource(java.lang.String driverClassName, java.lang.String url, java.util.Properties baseProps)
          Constructor DriverDataSource
 
Method Summary
 java.sql.Connection getConnection()
          Method getConnection
 java.sql.Connection getConnection(java.lang.String username, java.lang.String password)
          Method getConnection
 int getLoginTimeout()
          Method getLoginTimeout
 java.io.PrintWriter getLogWriter()
          Method getLogWriter
 void setLoginTimeout(int seconds)
          Method setLoginTimeout
 void setLogWriter(java.io.PrintWriter out)
          Method setLogWriter
 java.lang.String toString()
          Method toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DriverDataSource

public DriverDataSource(java.lang.String driverClassName,
                        java.lang.String url,
                        java.util.Properties baseProps)
Constructor DriverDataSource

Parameters:
driverClassName -
url -
baseProps -
Method Detail

toString

public java.lang.String toString()
Method toString


getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Method getConnection

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
Method getConnection

Specified by:
getConnection in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws java.sql.SQLException
Method getLoginTimeout

Specified by:
getLoginTimeout in interface javax.sql.DataSource
Throws:
java.sql.SQLException

setLoginTimeout

public void setLoginTimeout(int seconds)
                     throws java.sql.SQLException
Method setLoginTimeout

Specified by:
setLoginTimeout in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws java.sql.SQLException
Method getLogWriter

Specified by:
getLogWriter in interface javax.sql.DataSource
Throws:
java.sql.SQLException

setLogWriter

public void setLogWriter(java.io.PrintWriter out)
                  throws java.sql.SQLException
Method setLogWriter

Specified by:
setLogWriter in interface javax.sql.DataSource
Throws:
java.sql.SQLException