Class AbstractDataSource
java.lang.Object
org.springframework.jdbc.datasource.AbstractDataSource
- All Implemented Interfaces:
- Wrapper,- CommonDataSource,- DataSource
- Direct Known Subclasses:
- AbstractDriverBasedDataSource,- AbstractRoutingDataSource
Abstract base class for Spring's 
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.
- Since:
- 07.05.2003
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns 0, indicating the default system timeout is to be used.LogWriter methods are not supported.booleanisWrapperFor(Class<?> iface) voidsetLoginTimeout(int timeout) Setting a login timeout is not supported.voidLogWriter methods are not supported.<T> TMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSourcecreateShardingKeyBuilderMethods inherited from interface javax.sql.DataSourcecreateConnectionBuilder, getConnection, getConnection
- 
Field Details- 
loggerLogger available to subclasses.
 
- 
- 
Constructor Details- 
AbstractDataSourcepublic AbstractDataSource()
 
- 
- 
Method Details- 
getLoginTimeoutReturns 0, indicating the default system timeout is to be used.- Specified by:
- getLoginTimeoutin interface- CommonDataSource
- Specified by:
- getLoginTimeoutin interface- DataSource
- Throws:
- SQLException
 
- 
setLoginTimeoutSetting a login timeout is not supported.- Specified by:
- setLoginTimeoutin interface- CommonDataSource
- Specified by:
- setLoginTimeoutin interface- DataSource
- Throws:
- SQLException
 
- 
getLogWriterLogWriter methods are not supported.- Specified by:
- getLogWriterin interface- CommonDataSource
- Specified by:
- getLogWriterin interface- DataSource
 
- 
setLogWriterLogWriter methods are not supported.- Specified by:
- setLogWriterin interface- CommonDataSource
- Specified by:
- setLogWriterin interface- DataSource
- Throws:
- SQLException
 
- 
unwrap- Specified by:
- unwrapin interface- Wrapper
- Throws:
- SQLException
 
- 
isWrapperFor- Specified by:
- isWrapperForin interface- Wrapper
- Throws:
- SQLException
 
- 
getParentLogger- Specified by:
- getParentLoggerin interface- CommonDataSource
 
 
-