Class AbstractDataSource
java.lang.Object
com.baomidou.dynamic.datasource.ds.AbstractDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
- Direct Known Subclasses:
AbstractRoutingDataSource,ItemDataSource
Abstract base class for Spring's
DataSource-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns 0, indicating the default system timeout is to be used.LogWriter methods are not supported.booleanisWrapperFor(Class<?> iface) voidsetLoginTimeout(int timeout) voidLogWriter methods are not supported.<T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder, getConnection, getConnection
-
Constructor Details
-
AbstractDataSource
public AbstractDataSource()
-
-
Method Details
-
getLoginTimeout
Returns 0, indicating the default system timeout is to be used.- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Returns:
- 0
- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Parameters:
timeout- ignoredThrows
UnsupportedOperationExceptionwhen called.- Throws:
SQLException
-
getLogWriter
LogWriter methods are not supported.- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource- Returns:
- not supported
Throws
UnsupportedOperationExceptionwhen called.
-
setLogWriter
LogWriter methods are not supported.Throws
UnsupportedOperationExceptionwhen called.- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource
-