public class BeeJtaDataSource extends TimerTask implements DataSource
| 构造器和说明 |
|---|
BeeJtaDataSource() |
BeeJtaDataSource(BeeDataSource ds,
TransactionManager tm) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
void |
clear(boolean force) |
void |
close() |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
BeeConnectionPoolMonitorVo |
getPoolMonitorVo() |
boolean |
isClosed() |
boolean |
isWrapperFor(Class<?> clazz) |
void |
run() |
void |
setDataSource(BeeDataSource ds) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setPrintRuntimeLog(boolean printRuntimeLog) |
void |
setTransactionManager(TransactionManager tm) |
<T> T |
unwrap(Class<T> clazz) |
cancel, scheduledExecutionTimepublic BeeJtaDataSource()
public BeeJtaDataSource(BeeDataSource ds, TransactionManager tm)
public void setDataSource(BeeDataSource ds)
public void setTransactionManager(TransactionManager tm)
public Connection getConnection() throws SQLException
getConnection 在接口中 DataSourceSQLExceptionpublic void clear()
throws SQLException
SQLExceptionpublic void clear(boolean force)
throws SQLException
SQLExceptionpublic boolean isClosed()
throws SQLException
SQLExceptionpublic void close()
throws SQLException
SQLExceptionpublic void setPrintRuntimeLog(boolean printRuntimeLog)
throws SQLException
SQLExceptionpublic BeeConnectionPoolMonitorVo getPoolMonitorVo() throws SQLException
SQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection 在接口中 DataSourceSQLExceptionpublic 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 在接口中 WrapperSQLExceptionCopyright © 2023. All rights reserved.