public @interface Transactional
| 限定符和类型 | 可选元素和说明 |
|---|---|
Isolation |
isolation |
Class<? extends Throwable>[] |
noRollbackFor
The Throwable's that will explicitly NOT cause a rollback to occur.
|
boolean |
readOnly
Set this to true if the transaction should be only contain queries.
|
Class<? extends Throwable>[] |
rollbackFor
The Throwable's that will explicitly cause a rollback to occur.
|
int |
timeout |
public abstract boolean readOnly
public abstract Isolation isolation
Copyright © 2021. All rights reserved.