Class CloseableDelegatingDataSource
java.lang.Object
org.springframework.jdbc.datasource.DelegatingDataSource
com.github.seregamorph.testsmartcontext.jdbc.CloseableDelegatingDataSource
- All Implemented Interfaces:
Closeable,AutoCloseable,Wrapper,CommonDataSource,DataSource,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
LateInitDataSource
public class CloseableDelegatingDataSource
extends org.springframework.jdbc.datasource.DelegatingDataSource
implements Closeable
Closeable DataSource which delegates close call to target
- Author:
- Sergey Chernov
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.jdbc.datasource.DelegatingDataSource
afterPropertiesSet, createConnectionBuilder, createShardingKeyBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, getTargetDataSource, isWrapperFor, obtainTargetDataSource, setLoginTimeout, setLogWriter, setTargetDataSource, unwrap
-
Constructor Details
-
CloseableDelegatingDataSource
public CloseableDelegatingDataSource() -
CloseableDelegatingDataSource
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-