Class TransactionManager
java.lang.Object
com.ibatis.sqlmap.engine.transaction.TransactionManager
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionManager
(TransactionConfig transactionConfig) Instantiates a new transaction manager. -
Method Summary
Modifier and TypeMethodDescriptionvoid
begin
(SessionScope sessionScope) Begin.void
begin
(SessionScope sessionScope, int transactionIsolation) Begin.void
commit
(SessionScope sessionScope) Commit.void
end
(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
-