public class XaConnectionFactoryByDriverDs extends Object implements BeeXaConnectionFactory, CommonDataSource
| 构造器和说明 |
|---|
XaConnectionFactoryByDriverDs(XADataSource dataSource,
String username,
String password) |
| 限定符和类型 | 方法和说明 |
|---|---|
XAConnection |
create()
Creates a jdbc xa connection.
|
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
public XaConnectionFactoryByDriverDs(XADataSource dataSource, String username, String password)
public final XAConnection create() throws SQLException
BeeXaConnectionFactorycreate 在接口中 BeeXaConnectionFactorySQLException - when creates failed(maybe invalid url,error username and password and so on)public final PrintWriter getLogWriter() throws SQLException
getLogWriter 在接口中 CommonDataSourceSQLExceptionpublic final void setLogWriter(PrintWriter out) throws SQLException
setLogWriter 在接口中 CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout 在接口中 CommonDataSourceSQLExceptionpublic final void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout 在接口中 CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger 在接口中 CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2024. All rights reserved.