Class DBCPDataSource
Object
AbstractManageableDataSource
DBCPDataSource
- All Implemented Interfaces:
AutoCloseable,Wrapper,CommonDataSource,DataSource,ManageableDataSource
A closeable wrapper around
BasicDataSource- Author:
- Administrator
-
Field Summary
Fields inherited from class AbstractManageableDataSource
wrapped -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes up the datasource, frees all of its resources.boolean<T> TMethods inherited from class AbstractManageableDataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommonDataSource
createShardingKeyBuilderMethods inherited from interface DataSource
createConnectionBuilder
-
Constructor Details
-
DBCPDataSource
public DBCPDataSource(BasicDataSource wrapped)
-
-
Method Details
-
getWrapped
-
close
Description copied from interface:ManageableDataSourceCloses up the datasource, frees all of its resources. No other connection can be gathered from this DataSource once close() has been called- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Overrides:
isWrapperForin classAbstractManageableDataSource- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Overrides:
unwrapin classAbstractManageableDataSource- Throws:
SQLException
-