public class SpringManagedTransaction extends Object implements Transaction
| 构造器和说明 |
|---|
SpringManagedTransaction(DataSource dataSource) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close inner database connection.
|
void |
commit()
Commit inner database connection.
|
Connection |
getConnection()
Retrieve inner database connection
|
Integer |
getTimeout()
Get transaction timeout if set
|
void |
rollback()
Rollback inner database connection.
|
public SpringManagedTransaction(DataSource dataSource)
public Connection getConnection() throws SQLException
getConnection 在接口中 TransactionSQLExceptionpublic void commit()
throws SQLException
commit 在接口中 TransactionSQLExceptionpublic void rollback()
throws SQLException
rollback 在接口中 TransactionSQLExceptionpublic void close()
throws SQLException
close 在接口中 TransactionSQLExceptionpublic Integer getTimeout() throws SQLException
getTimeout 在接口中 TransactionSQLExceptionCopyright © 2023. All rights reserved.