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
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.springframework.jdbc.datasource.DelegatingDataSource

    afterPropertiesSet, createConnectionBuilder, createShardingKeyBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, getTargetDataSource, isWrapperFor, obtainTargetDataSource, setLoginTimeout, setLogWriter, setTargetDataSource, unwrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CloseableDelegatingDataSource

      public CloseableDelegatingDataSource()
    • CloseableDelegatingDataSource

      public CloseableDelegatingDataSource(DataSource targetDataSource)
  • Method Details