Annotation Interface OracleTransactional
@Documented
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,METHOD,TYPE})
public @interface OracleTransactional
Oracle-specific transactional annotation that applies Oracle transaction options.
- Since:
- 5.0
- Author:
- radovanradic
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPriority level for Oracle priority transactions.static @interfaceOracle-specific companion annotation for ambiguous commit recovery.static enumSessionless transaction mode for Oracle JDBC transactions. -
Field Summary
Fields -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe transaction isolation level.The optional name of the transaction.Defines the exceptions that will not result in a rollback.The desired transaction priority level for Oracle priority transactions.The transaction propagation type.booleantrueif the transaction is read-only.Defines the exceptions that will result in a rollback.The desired Oracle sessionless transaction mode.intThe timeout for this transaction.A qualifier value for the specified transaction.Alias fortransactionManager().
-
Field Details
-
ORACLE_PRIORITY
Transaction definition property used to store Oracle transaction priority.- See Also:
-
ORACLE_SESSIONLESS_MODE
Transaction definition property used to store Oracle sessionless transaction mode.- Since:
- 5.2.0
- See Also:
-
-
Element Details
-
value
-
transactionManager
A qualifier value for the specified transaction.- Returns:
- The transaction manager
- See Also:
- Default:
""
-
propagation
@AliasFor(annotation=Transactional.class, member="propagation") TransactionDefinition.Propagation propagationThe transaction propagation type.- Returns:
- The propagation
- Default:
REQUIRED
-
isolation
@AliasFor(annotation=Transactional.class, member="isolation") TransactionDefinition.Isolation isolationThe transaction isolation level.- Returns:
- The isolation level
- Default:
DEFAULT
-
timeout
The timeout for this transaction.When
sessionless()isOracleTransactional.Sessionless.SUSPEND, this timeout is passed to Oracle when the sessionless transaction is started. If no timeout is specified, the Oracle JDBC driver and database defaults apply.- Returns:
- The timeout
- Default:
-1
-
readOnly
trueif the transaction is read-only.- Returns:
- Whether is read-only transaction
- Default:
false
-
rollbackFor
@AliasFor(annotation=Transactional.class, member="rollbackFor") Class<? extends Throwable>[] rollbackForDefines the exceptions that will result in a rollback.- Returns:
- The exception types that will result in a rollback.
- Default:
{}
-
noRollbackFor
@AliasFor(annotation=Transactional.class, member="noRollbackFor") Class<? extends Throwable>[] noRollbackForDefines the exceptions that will not result in a rollback.- Returns:
- The exception types that will not result in a rollback.
- Default:
{}
-
name
The optional name of the transaction.- Returns:
- The transaction name
- Default:
""
-
priority
OracleTransactional.Priority priorityThe desired transaction priority level for Oracle priority transactions.- Returns:
- The priority level
- Default:
HIGH
-
sessionless
OracleTransactional.Sessionless sessionlessThe desired Oracle sessionless transaction mode.A sessionless mode cannot be combined with
OracleTransactional.Recoverable.- Returns:
- The sessionless transaction mode
- Since:
- 5.2.0
- Default:
NONE
-