The Spring Framework

org.springframework.jdbc.datasource
Class AbstractDataSource

java.lang.Object
  extended by org.springframework.jdbc.datasource.AbstractDataSource
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
AbstractRoutingDataSource, DriverManagerDataSource

public abstract class AbstractDataSource
extends Object
implements DataSource

Abstract base class for Spring's DataSource implementations, taking care of the padding.

Since:
07.05.2003
Author:
Juergen Hoeller
See Also:
DriverManagerDataSource

Field Summary
protected  Log logger
          Logger available to subclasses
 
Constructor Summary
AbstractDataSource()
           
 
Method Summary
 int getLoginTimeout()
          Returns 0, indicating to use the default system timeout.
 PrintWriter getLogWriter()
          LogWriter methods are not supported.
 void setLoginTimeout(int timeout)
          Setting a login timeout is not supported.
 void setLogWriter(PrintWriter pw)
          LogWriter methods are not supported.
 
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 Log logger
Logger available to subclasses

Constructor Detail

AbstractDataSource

public AbstractDataSource()
Method Detail

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
Returns 0, indicating to use the default system timeout.

Specified by:
getLoginTimeout in interface DataSource
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int timeout)
                     throws SQLException
Setting a login timeout is not supported.

Specified by:
setLoginTimeout in interface DataSource
Throws:
SQLException

getLogWriter

public PrintWriter getLogWriter()
LogWriter methods are not supported.

Specified by:
getLogWriter in interface DataSource

setLogWriter

public void setLogWriter(PrintWriter pw)
                  throws SQLException
LogWriter methods are not supported.

Specified by:
setLogWriter in interface DataSource
Throws:
SQLException

The Spring Framework

Copyright © 2002-2007 The Spring Framework.