|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Transactional
Any method or class marked with this annotation will be considered for transactionality.
| Optional Element Summary | |
|---|---|
boolean |
autoCommit
Flag to indicate the auto commit policy. |
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.apache.ibatis.session.TransactionIsolationLevel |
isolationLevel
Returns the constant indicating the transaction isolation level. |
Class<? extends 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.apache.ibatis.session.TransactionIsolationLevel isolationLevel
public abstract boolean force
commit().
public abstract boolean autoCommit
public abstract Class<? extends Throwable> rethrowExceptionsAs
public abstract String exceptionMessage
Formatter.format(String, Object...)public abstract boolean rollbackOnly
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||