@InterceptorBinding @Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface Transactional
| Modifier and Type | Optional Element | Description |
|---|---|---|
org.apache.ibatis.session.ExecutorType |
executorType |
Returns the constant indicating the myBatis executor type.
|
boolean |
force |
Flag to indicate that myBatis has to force the transaction
commit(). |
Isolation |
isolation |
Returns the constant indicating the transaction isolation level.
|
Class<? extends Throwable>[] |
rollbackFor |
Defines zero (0) or more exception
Class classes, which must be a subclass of Throwable, indicating
which exception types must cause a transaction rollback. |
boolean |
rollbackOnly |
If true, the transaction will never committed but rather rolled back, useful for testing purposes.
|
org.apache.ibatis.session.ExecutorType executorType
Isolation isolation
boolean force
commit().Copyright © 2013–2018 MyBatis.org. All rights reserved.