public abstract class

AbstractDataSource

extends Object
implements DataSource
java.lang.Object
   ↳ org.springframework.jdbc.datasource.AbstractDataSource
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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

'Padding' in the context of this class means default implementations for certain methods from the DataSource interface, such as getLoginTimeout(), setLoginTimeout(int), and so forth.

Summary

Fields
protected final Log logger Logger available to subclasses
Public Constructors
AbstractDataSource()
Public Methods
PrintWriter getLogWriter()
LogWriter methods are not supported.
int getLoginTimeout()
Returns 0, indicating the default system timeout is to be used.
boolean isWrapperFor(Class<?> iface)
void setLogWriter(PrintWriter pw)
LogWriter methods are not supported.
void setLoginTimeout(int timeout)
Setting a login timeout is not supported.
<T> T unwrap(Class<T> iface)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.sql.Wrapper
From interface javax.sql.CommonDataSource
From interface javax.sql.DataSource

Fields

protected final Log logger

Logger available to subclasses

Public Constructors

public AbstractDataSource ()

Public Methods

public PrintWriter getLogWriter ()

LogWriter methods are not supported.

public int getLoginTimeout ()

Returns 0, indicating the default system timeout is to be used.

Throws
SQLException

public boolean isWrapperFor (Class<?> iface)

Throws
SQLException

public void setLogWriter (PrintWriter pw)

LogWriter methods are not supported.

Throws
SQLException

public void setLoginTimeout (int timeout)

Setting a login timeout is not supported.

Throws
SQLException

public T unwrap (Class<T> iface)

Throws
SQLException