public interface Transaction
Modifier and Type | Method and Description |
---|---|
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
SQLException
- the SQL exceptionvoid commit() throws SQLException
SQLException
- the SQL exceptionvoid rollback() throws SQLException
SQLException
- the SQL exceptionvoid close() throws SQLException
SQLException
- the SQL exceptionInteger getTimeout() throws SQLException
SQLException
- the SQL exceptionCopyright © 2009–2021 MyBatis.org. All rights reserved.