TransactionPropagation

Defines transaction behavior when it is launched in the context of an already existing transaction. Reflects key propagation strategies from Spring Framework.

Entries

Link copied to clipboard

Default behavior. If a transaction already exists, join it. If not, create a new one.

Link copied to clipboard

Always create a new, independent transaction. The existing transaction will be suspended during the execution of the new one. Useful e.g., for saving audit logs that must succeed even if the main operation is rolled back.

Link copied to clipboard

Execute in a nested transaction if a transaction already exists. Uses the SAVEPOINT mechanism in the database. This allows independent rollback of the nested transaction without affecting the outer transaction. If a parent transaction does not exist, behaves like REQUIRED.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.