Package org.mybatis.cdi
Annotation Type Transactional
Adds transaction demarcation to the annotated method.
- Author:
- Frank David MartÃnez
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionorg.apache.ibatis.session.ExecutorType
Returns the constant indicating the myBatis executor type.boolean
Flag to indicate that myBatis has to force the transactioncommit().
Returns the constant indicating the transaction isolation level.Defines zero (0) or more exceptionClass classes
, which must be a subclass ofThrowable
, indicating which exception types must cause a transaction rollback.boolean
If true, the transaction will never committed but rather rolled back, useful for testing purposes.
-
Element Details
-
executorType
org.apache.ibatis.session.ExecutorType executorTypeReturns the constant indicating the myBatis executor type.- Returns:
- ExecutorType.SIMPLE by default, user defined otherwise.
- Default:
SIMPLE
-
isolation
Isolation isolationReturns the constant indicating the transaction isolation level.- Returns:
- Isolation.DEFAULT by default, user defined otherwise.
- Default:
DEFAULT
-
force
boolean forceFlag to indicate that myBatis has to force the transactioncommit().
- Returns:
- false by default, user defined otherwise.
- Default:
false
-
rollbackOnly
boolean rollbackOnlyIf true, the transaction will never committed but rather rolled back, useful for testing purposes.- Returns:
- false by default, user defined otherwise.
- Default:
false
-
rollbackFor
-