public class SpringNbTransaction extends Object implements INbTransaction
| 构造器和说明 |
|---|
SpringNbTransaction(Connection conn) |
SpringNbTransaction(INbDataSource nbDataSource) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
commit()
不是事务连接 才提交
|
Connection |
getConnection(String dsName) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionpublic SpringNbTransaction(Connection conn)
public SpringNbTransaction(INbDataSource nbDataSource)
public Connection getConnection(String dsName) throws SQLException
getConnection 在接口中 INbTransactionSQLExceptionpublic void commit()
throws SQLException
commit 在接口中 INbTransactionSQLExceptionpublic void rollback()
throws SQLException
rollback 在接口中 INbTransactionSQLExceptionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit 在接口中 INbTransactionSQLExceptionpublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2023. All rights reserved.