@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface MultiTransactional
| 限定符和类型 | 可选元素和说明 |
|---|---|
boolean |
autoCommit
已过时。
Users that intend auto commit can achieve it by simply not using @Transactional
|
java.lang.String[] |
envId
数据源名称
|
java.lang.String |
exceptionMessage
A custom error message when throwing the custom exception.
|
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(). |
org.mybatis.guice.transactional.Isolation |
isolation
Returns the constant indicating the transaction isolation level.
|
org.apache.ibatis.session.TransactionIsolationLevel |
isolationLevel
已过时。
use
isolation() instead, setting this property has no effect. |
java.lang.Class<? extends java.lang.Throwable> |
rethrowExceptionsAs
The exception re-thrown when an error occurs during the transaction.
|
boolean |
rollbackOnly
If true, the transaction will never committed but rather rolled back, useful for testing purposes.
|
public abstract org.apache.ibatis.session.ExecutorType executorType
public abstract org.mybatis.guice.transactional.Isolation isolation
@Deprecated public abstract org.apache.ibatis.session.TransactionIsolationLevel isolationLevel
isolation() instead, setting this property has no effect.public abstract boolean force
commit().@Deprecated public abstract boolean autoCommit
public abstract java.lang.Class<? extends java.lang.Throwable> rethrowExceptionsAs
public abstract java.lang.String exceptionMessage
Formatter.format(String, Object...)Copyright © 2015-2017. All Rights Reserved.