public class BeeDataSource extends BeeDataSourceConfig implements DataSource, XADataSource
| 构造器和说明 |
|---|
BeeDataSource() |
BeeDataSource(BeeDataSourceConfig config) |
BeeDataSource(String driver,
String url,
String user,
String password) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(boolean forceCloseUsing) |
void |
clear(boolean forceCloseUsing,
BeeDataSourceConfig config) |
void |
close() |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
BeeConnectionPoolMonitorVo |
getPoolMonitorVo() |
XAConnection |
getXAConnection() |
XAConnection |
getXAConnection(String user,
String password) |
boolean |
isClosed() |
boolean |
isWrapperFor(Class<?> clazz) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setMaxWait(long maxWait) |
void |
setPrintRuntimeLog(boolean printRuntimeLog) |
<T> T |
unwrap(Class<T> clazz) |
addConnectProperty, addConnectProperty, check, getBorrowSemaphoreSize, getConnectionFactory, getConnectionFactoryClass, getConnectionFactoryClassName, getDefaultCatalog, getDefaultSchema, getDefaultTransactionIsolationCode, getDefaultTransactionIsolationName, getDelayTimeForNextClear, getDriverClassName, getHoldTimeout, getIdleTimeout, getInitialSize, getJdbcUrl, getMaxActive, getMaxWait, getPassword, getPasswordDecoderClass, getPasswordDecoderClassName, getPoolImplementClassName, getPoolName, getTimerCheckInterval, getUrl, getUsername, getValidAssumeTime, getValidTestSql, getValidTestTimeout, isAsyncCreateInitConnection, isDefaultAutoCommit, isDefaultReadOnly, isEnableDefaultOnAutoCommit, isEnableDefaultOnCatalog, isEnableDefaultOnReadOnly, isEnableDefaultOnSchema, isEnableDefaultOnTransactionIsolation, isEnableJmx, isFairMode, isForceCloseUsingOnClear, isPrintConfigInfo, isPrintRuntimeLog, loadFromProperties, loadFromPropertiesFile, loadFromPropertiesFile, removeConnectProperty, setAsyncCreateInitConnection, setBorrowSemaphoreSize, setConnectionFactoryClass, setConnectionFactoryClassName, setDefaultAutoCommit, setDefaultCatalog, setDefaultReadOnly, setDefaultSchema, setDefaultTransactionIsolationCode, setDefaultTransactionIsolationName, setDelayTimeForNextClear, setDriverClassName, setEnableDefaultOnAutoCommit, setEnableDefaultOnCatalog, setEnableDefaultOnReadOnly, setEnableDefaultOnSchema, setEnableDefaultOnTransactionIsolation, setEnableJmx, setFairMode, setForceCloseUsingOnClear, setHoldTimeout, setIdleTimeout, setInitialSize, setJdbcUrl, setMaxActive, setPassword, setPasswordDecoderClass, setPasswordDecoderClassName, setPoolImplementClassName, setPoolName, setPrintConfigInfo, setRawConnectionFactory, setRawXaConnectionFactory, setTimerCheckInterval, setUrl, setUsername, setValidAssumeTime, setValidTestSql, setValidTestTimeoutpublic BeeDataSource()
public BeeDataSource(BeeDataSourceConfig config)
public final Connection getConnection() throws SQLException
getConnection 在接口中 DataSourceSQLExceptionpublic final XAConnection getXAConnection() throws SQLException
getXAConnection 在接口中 XADataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection 在接口中 DataSourceSQLExceptionpublic XAConnection getXAConnection(String user, String password) throws SQLException
getXAConnection 在接口中 XADataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter 在接口中 CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter 在接口中 CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger 在接口中 CommonDataSourceSQLFeatureNotSupportedExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout 在接口中 CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout 在接口中 CommonDataSourceSQLExceptionpublic boolean isWrapperFor(Class<?> clazz)
isWrapperFor 在接口中 Wrapperpublic <T> T unwrap(Class<T> clazz) throws SQLException
unwrap 在接口中 WrapperSQLExceptionpublic boolean isClosed()
public void close()
public void setMaxWait(long maxWait)
setMaxWait 在类中 BeeDataSourceConfigpublic void setPrintRuntimeLog(boolean printRuntimeLog)
public BeeConnectionPoolMonitorVo getPoolMonitorVo() throws SQLException
SQLExceptionpublic void clear(boolean forceCloseUsing)
throws SQLException
SQLExceptionpublic void clear(boolean forceCloseUsing,
BeeDataSourceConfig config)
throws SQLException
SQLExceptionCopyright © 2023. All rights reserved.