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.int
Deprecated.Deprecated.Deprecated.boolean
isWrapperFor
(Class<?> iface) Deprecated.void
setLoginTimeout
(int seconds) Deprecated.void
setLogWriter
(PrintWriter out) Deprecated.<T> T
Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
-
Constructor Details
-
NullDataSource
public NullDataSource()Deprecated.Constructs a newNullDataSource
.
-
-
Method Details
-
getParentLogger
Deprecated.- Specified by:
getParentLogger
in interfaceCommonDataSource
- Throws:
SQLFeatureNotSupportedException
-
unwrap
Deprecated.- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
Deprecated.- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
getConnection
Deprecated.- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getConnection
Deprecated.- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getLogWriter
Deprecated.- Specified by:
getLogWriter
in interfaceCommonDataSource
- Specified by:
getLogWriter
in interfaceDataSource
- Throws:
SQLException
-
setLogWriter
Deprecated.- Specified by:
setLogWriter
in interfaceCommonDataSource
- Specified by:
setLogWriter
in interfaceDataSource
- Throws:
SQLException
-
setLoginTimeout
Deprecated.- Specified by:
setLoginTimeout
in interfaceCommonDataSource
- Specified by:
setLoginTimeout
in interfaceDataSource
- Throws:
SQLException
-
getLoginTimeout
Deprecated.- Specified by:
getLoginTimeout
in interfaceCommonDataSource
- Specified by:
getLoginTimeout
in interfaceDataSource
- Throws:
SQLException
-
createConnectionBuilder
Deprecated.- Specified by:
createConnectionBuilder
in interfaceDataSource
- Throws:
SQLException
-
DataSource