Class TestingDataSource
-
- All Implemented Interfaces:
-
com.zaxxer.hikari.HikariConfigMXBean,java.sql.Wrapper,javax.sql.CommonDataSource,javax.sql.DataSource
public class TestingDataSource extends HikariConfig implements DataSource
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TestingDataSource(String driver, String url, String user, String pass)
-
Method Summary
Modifier and Type Method Description voidreopen()ConnectiongetConnection()ConnectiongetConnection(String username, String password)PrintWritergetLogWriter()voidsetLogWriter(PrintWriter out)voidsetLoginTimeout(int seconds)intgetLoginTimeout()LoggergetParentLogger()<T> Tunwrap(Class<T> iface)booleanisWrapperFor(Class<out Object> iface)-
Methods inherited from class com.zaxxer.hikari.HikariConfig
addDataSourceProperty, addHealthCheckProperty, copyStateTo, getCatalog, getConnectionInitSql, getConnectionTestQuery, getConnectionTimeout, getDataSource, getDataSourceClassName, getDataSourceJNDI, getDataSourceProperties, getDriverClassName, getExceptionOverrideClassName, getHealthCheckProperties, getHealthCheckRegistry, getIdleTimeout, getInitializationFailTimeout, getJdbcUrl, getKeepaliveTime, getLeakDetectionThreshold, getMaxLifetime, getMaximumPoolSize, getMetricRegistry, getMetricsTrackerFactory, getMinimumIdle, getPassword, getPoolName, getScheduledExecutor, getSchema, getThreadFactory, getTransactionIsolation, getUsername, getValidationTimeout, isAllowPoolSuspension, isAutoCommit, isIsolateInternalQueries, isReadOnly, isRegisterMbeans, setAllowPoolSuspension, setAutoCommit, setCatalog, setConnectionInitSql, setConnectionTestQuery, setConnectionTimeout, setDataSource, setDataSourceClassName, setDataSourceJNDI, setDataSourceProperties, setDriverClassName, setExceptionOverrideClassName, setHealthCheckProperties, setHealthCheckRegistry, setIdleTimeout, setInitializationFailTimeout, setIsolateInternalQueries, setJdbcUrl, setKeepaliveTime, setLeakDetectionThreshold, setMaxLifetime, setMaximumPoolSize, setMetricRegistry, setMetricsTrackerFactory, setMinimumIdle, setPassword, setPoolName, setReadOnly, setRegisterMbeans, setScheduledExecutor, setSchema, setThreadFactory, setTransactionIsolation, setUsername, setValidationTimeout, validate -
Methods inherited from class javax.sql.DataSource
createConnectionBuilder -
Methods inherited from class javax.sql.CommonDataSource
createShardingKeyBuilder -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
reopen
void reopen()
-
getConnection
Connection getConnection()
-
getConnection
Connection getConnection(String username, String password)
-
getLogWriter
PrintWriter getLogWriter()
-
setLogWriter
void setLogWriter(PrintWriter out)
-
setLoginTimeout
void setLoginTimeout(int seconds)
-
getLoginTimeout
int getLoginTimeout()
-
getParentLogger
Logger getParentLogger()
-
isWrapperFor
boolean isWrapperFor(Class<out Object> iface)
-
-
-
-