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 TypeMethodDescriptionvoid
close()
Closes up the datasource, frees all of its resources.boolean
<T> T
Methods inherited from class AbstractManageableDataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface CommonDataSource
createShardingKeyBuilder
Methods inherited from interface DataSource
createConnectionBuilder
-
Constructor Details
-
DBCPDataSource
public DBCPDataSource(BasicDataSource wrapped)
-
-
Method Details
-
getWrapped
-
close
Description copied from interface:ManageableDataSource
Closes 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:
isWrapperFor
in interfaceWrapper
- Overrides:
isWrapperFor
in classAbstractManageableDataSource
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Overrides:
unwrap
in classAbstractManageableDataSource
- Throws:
SQLException
-