public interface MockDataSource extends DataSource
| Modifier and Type | Interface and Description |
|---|---|
static class |
MockDataSource.Empty |
| Modifier and Type | Method and Description |
|---|---|
default Connection |
getConnection() |
default Connection |
getConnection(String username,
String password) |
default int |
getLoginTimeout() |
default PrintWriter |
getLogWriter() |
default Logger |
getParentLogger() |
default boolean |
isWrapperFor(Class<?> iface) |
default void |
setLoginTimeout(int seconds) |
default void |
setLogWriter(PrintWriter out) |
default <T> T |
unwrap(Class<T> iface) |
default Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptiondefault Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptiondefault <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptiondefault boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptiondefault PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptiondefault void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptiondefault int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptiondefault void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptiondefault Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.