类 DefaultDataSource
java.lang.Object
com.zaxxer.hikari.HikariConfig
com.zaxxer.hikari.HikariDataSource
com.walker.jdbc.ds.DefaultDataSource
- 所有已实现的接口:
DataSourceMeta,com.zaxxer.hikari.HikariConfigMXBean,Closeable,AutoCloseable,Wrapper,CommonDataSource,DataSource
系统默认自定义数据源对象,便于获得一些必要元数据。
- 作者:
- 时克英
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明获得连接数据库名字获得数据库类型getIp()获得数据库密码intgetPort()getUrl()获得连接数据库URL原始内容获得数据源库用户名voidsetDatabaseName(String databaseName) voidsetDatabaseType(int databaseTypeValue) voidsetDriverClassName(String driverClassName) voidvoidsetJdbcUrl(String jdbcUrl) voidsetPassword(String password) voidsetPort(int port) voidsetUsername(String username) 从类继承的方法 com.zaxxer.hikari.HikariDataSource
close, evictConnection, getConnection, getConnection, getHikariConfigMXBean, getHikariPoolMXBean, getLoginTimeout, getLogWriter, getParentLogger, isClosed, isRunning, isWrapperFor, setHealthCheckRegistry, setLoginTimeout, setLogWriter, setMetricRegistry, setMetricsTrackerFactory, toString, unwrap从类继承的方法 com.zaxxer.hikari.HikariConfig
addDataSourceProperty, addHealthCheckProperty, copyStateTo, getCatalog, getConnectionInitSql, getConnectionTestQuery, getConnectionTimeout, getDataSource, getDataSourceClassName, getDataSourceJNDI, getDataSourceProperties, getDriverClassName, getExceptionOverrideClassName, getHealthCheckProperties, getHealthCheckRegistry, getIdleTimeout, getInitializationFailTimeout, getJdbcUrl, getKeepaliveTime, getLeakDetectionThreshold, getMaximumPoolSize, getMaxLifetime, getMetricRegistry, getMetricsTrackerFactory, getMinimumIdle, getPoolName, getScheduledExecutor, getSchema, getThreadFactory, getTransactionIsolation, getValidationTimeout, isAllowPoolSuspension, isAutoCommit, isIsolateInternalQueries, isReadOnly, isRegisterMbeans, setAllowPoolSuspension, setAutoCommit, setCatalog, setConnectionInitSql, setConnectionTestQuery, setConnectionTimeout, setDataSource, setDataSourceClassName, setDataSourceJNDI, setDataSourceProperties, setExceptionOverrideClassName, setHealthCheckProperties, setIdleTimeout, setInitializationFailTimeout, setIsolateInternalQueries, setKeepaliveTime, setLeakDetectionThreshold, setMaximumPoolSize, setMaxLifetime, setMinimumIdle, setPoolName, setReadOnly, setRegisterMbeans, setScheduledExecutor, setSchema, setThreadFactory, setTransactionIsolation, setValidationTimeout, validate从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 javax.sql.CommonDataSource
createShardingKeyBuilder从接口继承的方法 javax.sql.DataSource
createConnectionBuilder
-
字段详细资料
-
logger
protected final transient org.slf4j.Logger logger -
ip
-
port
protected int port
-
-
构造器详细资料
-
DefaultDataSource
public DefaultDataSource()
-
-
方法详细资料
-
getUsername
从接口复制的说明:DataSourceMeta获得数据源库用户名- 指定者:
getUsername在接口中DataSourceMeta- 覆盖:
getUsername在类中com.zaxxer.hikari.HikariConfig- 返回:
-
setUsername
- 指定者:
setUsername在接口中DataSourceMeta- 指定者:
setUsername在接口中com.zaxxer.hikari.HikariConfigMXBean- 覆盖:
setUsername在类中com.zaxxer.hikari.HikariConfig
-
getPassword
从接口复制的说明:DataSourceMeta获得数据库密码- 指定者:
getPassword在接口中DataSourceMeta- 覆盖:
getPassword在类中com.zaxxer.hikari.HikariConfig- 返回:
-
setPassword
- 指定者:
setPassword在接口中DataSourceMeta- 指定者:
setPassword在接口中com.zaxxer.hikari.HikariConfigMXBean- 覆盖:
setPassword在类中com.zaxxer.hikari.HikariConfig
-
getDatabaseType
从接口复制的说明:DataSourceMeta获得数据库类型- 指定者:
getDatabaseType在接口中DataSourceMeta- 返回:
-
getUrl
从接口复制的说明:DataSourceMeta获得连接数据库URL原始内容- 指定者:
getUrl在接口中DataSourceMeta- 返回:
-
getDatabaseName
从接口复制的说明:DataSourceMeta获得连接数据库名字- 指定者:
getDatabaseName在接口中DataSourceMeta- 返回:
-
getIp
- 指定者:
getIp在接口中DataSourceMeta
-
getPort
public int getPort()- 指定者:
getPort在接口中DataSourceMeta
-
setJdbcUrl
- 覆盖:
setJdbcUrl在类中com.zaxxer.hikari.HikariConfig
-
setDriverClassName
- 覆盖:
setDriverClassName在类中com.zaxxer.hikari.HikariConfig
-
setDatabaseType
public void setDatabaseType(int databaseTypeValue) -
setIp
-
setPort
public void setPort(int port) -
setDatabaseName
-