public interface MockDriver extends Driver
| Modifier and Type | Field and Description |
|---|---|
static DriverPropertyInfo[] |
EMPTY_PROPERTY_INFO |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
acceptsURL(String url) |
default Connection |
connect(String url,
Properties info) |
static void |
deregisterMockDriver() |
default int |
getMajorVersion() |
default int |
getMinorVersion() |
default Logger |
getParentLogger() |
default DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
default boolean |
jdbcCompliant() |
static void |
registerMockDriver() |
static void |
registerMockDriver(Class<? extends Connection> connectionType) |
static final DriverPropertyInfo[] EMPTY_PROPERTY_INFO
static void registerMockDriver(Class<? extends Connection> connectionType)
static void registerMockDriver()
static void deregisterMockDriver()
default Connection connect(String url, Properties info) throws SQLException
connect in interface DriverSQLExceptiondefault boolean acceptsURL(String url) throws SQLException
acceptsURL in interface DriverSQLExceptiondefault DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo in interface DriverSQLExceptiondefault int getMajorVersion()
getMajorVersion in interface Driverdefault int getMinorVersion()
getMinorVersion in interface Driverdefault boolean jdbcCompliant()
jdbcCompliant in interface Driverdefault Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface DriverSQLFeatureNotSupportedExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.