com.interface21.jdbc.datasource
Class AbstractDataSource

java.lang.Object
  |
  +--com.interface21.jdbc.datasource.AbstractDataSource
All Implemented Interfaces:
javax.sql.DataSource
Direct Known Subclasses:
DriverManagerDataSource

public abstract class AbstractDataSource
extends java.lang.Object
implements javax.sql.DataSource

Abstract base class for Spring's DataSource implementations, taking care of the "uninteresting" glue.

Since:
07.05.2003
Version:
$Id: AbstractDataSource.java,v 1.3 2003/05/28 16:39:14 jhoeller Exp $
Author:
Juergen Hoeller
See Also:
DriverManagerDataSource

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
AbstractDataSource()
           
 
Method Summary
 int getLoginTimeout()
          Returns 0: means use default system timeout.
 java.io.PrintWriter getLogWriter()
          LogWriter methods are unsupported.
 void setLoginTimeout(int timeout)
           
 void setLogWriter(java.io.PrintWriter pw)
          LogWriter methods are unsupported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.DataSource
getConnection, getConnection
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

AbstractDataSource

public AbstractDataSource()
Method Detail

getLoginTimeout

public int getLoginTimeout()
                    throws java.sql.SQLException
Returns 0: means use default system timeout.
Specified by:
getLoginTimeout in interface javax.sql.DataSource

setLoginTimeout

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

getLogWriter

public java.io.PrintWriter getLogWriter()
LogWriter methods are unsupported.
Specified by:
getLogWriter in interface javax.sql.DataSource

setLogWriter

public void setLogWriter(java.io.PrintWriter pw)
                  throws java.sql.SQLException
LogWriter methods are unsupported.
Specified by:
setLogWriter in interface javax.sql.DataSource


Rod Johnson and Spring contributors 2001-2003.