public interface Transaction
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
Connection getConnection() throws SQLException
SQLExceptionvoid commit()
throws SQLException
SQLExceptionvoid rollback()
throws SQLException
SQLExceptionvoid close()
throws SQLException
SQLExceptionInteger getTimeout() throws SQLException
SQLExceptionCopyright © 2023. All rights reserved.