Class NullDataSource
java.lang.Object
com.github.marschall.spring.batch.nulldatasource.NullDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
Deprecated.
A
DataSource that doesn't perform any database access.
Intended for use with JobRepositoryTestUtils which requires a DataSource,
this is a work around for #3767.
Instances of this class are thread safe but created objects are not.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.getConnection(String username, String password) Deprecated.intDeprecated.Deprecated.Deprecated.booleanisWrapperFor(Class<?> iface) Deprecated.voidsetLoginTimeout(int seconds) Deprecated.voidsetLogWriter(PrintWriter out) Deprecated.<T> TDeprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
-
Constructor Details
-
NullDataSource
public NullDataSource()Deprecated.Constructs a newNullDataSource.
-
-
Method Details
-
getParentLogger
Deprecated.- Specified by:
getParentLoggerin interfaceCommonDataSource- Throws:
SQLFeatureNotSupportedException
-
unwrap
Deprecated.- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
Deprecated.- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
getConnection
Deprecated.- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
Deprecated.- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getLogWriter
Deprecated.- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource- Throws:
SQLException
-
setLogWriter
Deprecated.- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource- Throws:
SQLException
-
setLoginTimeout
Deprecated.- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
getLoginTimeout
Deprecated.- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
createConnectionBuilder
Deprecated.- Specified by:
createConnectionBuilderin interfaceDataSource- Throws:
SQLException
-
DataSource