Class TransactionManager
java.lang.Object
com.ibatis.sqlmap.engine.transaction.TransactionManager
The Class TransactionManager.
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionManager(TransactionConfig transactionConfig) Instantiates a new transaction manager. -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin(SessionScope sessionScope) Begin.voidbegin(SessionScope sessionScope, int transactionIsolation) Begin.voidcommit(SessionScope sessionScope) Commit.voidend(SessionScope sessionScope) End.Gets the config.
-
Constructor Details
-
TransactionManager
Instantiates a new transaction manager.- Parameters:
transactionConfig- the transaction config
-
-
Method Details
-
begin
Begin.- Parameters:
sessionScope- the session scope- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
begin
public void begin(SessionScope sessionScope, int transactionIsolation) throws SQLException, TransactionException Begin.- Parameters:
sessionScope- the session scopetransactionIsolation- the transaction isolation- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
commit
Commit.- Parameters:
sessionScope- the session scope- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
end
End.- Parameters:
sessionScope- the session scope- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
getConfig
Gets the config.- Returns:
- the config
-