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
  • Field Details

    • ORACLE_PRIORITY

      static final String ORACLE_PRIORITY
      Transaction definition property used to store Oracle transaction priority.
      See Also:
    • ORACLE_SESSIONLESS_MODE

      static final String ORACLE_SESSIONLESS_MODE
      Transaction definition property used to store Oracle sessionless transaction mode.
      Since:
      5.2.0
      See Also:
  • Element Details

    • value

      @AliasFor(annotation=Transactional.class, member="value") String value
      Returns:
      The transaction manager
      See Also:
      Default:
      ""
    • transactionManager

      @AliasFor(annotation=Transactional.class, member="value") String transactionManager
      A qualifier value for the specified transaction.
      Returns:
      The transaction manager
      See Also:
      Default:
      ""
    • propagation

      @AliasFor(annotation=Transactional.class, member="propagation") TransactionDefinition.Propagation propagation
      The transaction propagation type.
      Returns:
      The propagation
      Default:
      REQUIRED
    • isolation

      @AliasFor(annotation=Transactional.class, member="isolation") TransactionDefinition.Isolation isolation
      The transaction isolation level.
      Returns:
      The isolation level
      Default:
      DEFAULT
    • timeout

      @AliasFor(annotation=Transactional.class, member="timeout") int timeout
      The timeout for this transaction.

      When sessionless() is OracleTransactional.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

      @AliasFor(annotation=Transactional.class, member="readOnly") boolean readOnly
      true if the transaction is read-only.
      Returns:
      Whether is read-only transaction
      Default:
      false
    • rollbackFor

      @AliasFor(annotation=Transactional.class, member="rollbackFor") Class<? extends Throwable>[] rollbackFor
      Defines 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>[] noRollbackFor
      Defines the exceptions that will not result in a rollback.
      Returns:
      The exception types that will not result in a rollback.
      Default:
      {}
    • name

      @AliasFor(annotation=Transactional.class, member="name") String name
      The optional name of the transaction.
      Returns:
      The transaction name
      Default:
      ""
    • priority

      The desired transaction priority level for Oracle priority transactions.
      Returns:
      The priority level
      Default:
      HIGH
    • sessionless

      The 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