public final class ConnectionFactoryByDriverDs extends Object implements BeeConnectionFactory, CommonDataSource
| 构造器和说明 |
|---|
ConnectionFactoryByDriverDs(DataSource driverDataSource,
String username,
String password) |
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
create()
Creates a connection object to be pooled
|
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
public ConnectionFactoryByDriverDs(DataSource driverDataSource, String username, String password)
public Connection create() throws SQLException
BeeConnectionFactorycreate 在接口中 BeeConnectionFactorySQLException - when creates failed.public PrintWriter getLogWriter() throws SQLException
getLogWriter 在接口中 CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter 在接口中 CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout 在接口中 CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout 在接口中 CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger 在接口中 CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2024. All rights reserved.