Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public enum Propagation

  1. Object
  2. Enum<Propagation>
  3. Propagation

ImplementsComparable<Propagation>

What a Transactional method does about a transaction that is already open on the calling thread. Spring’s meanings, one for one.

Enum constants

REQUIREDJoins the open transaction, or opens one.
SUPPORTSJoins the open transaction, or runs without one.
MANDATORYJoins the open transaction, and refuses to run without one.
REQUIRES_NEWSuspends the open transaction, if any, and opens its own on another connection.
NOT_SUPPORTEDSuspends the open transaction, if any, and runs without one.
NEVERRefuses to run inside a transaction.
NESTEDRuns in a savepoint of the open transaction, which a failure rolls back to without failing the outer transaction; opens one when none is open.

Methods

public static Propagation[] values()
public static Propagation valueOf(String name)

Inherited methods

Enum constant details

REQUIRED

REQUIRED
Joins the open transaction, or opens one. The default.

SUPPORTS

SUPPORTS
Joins the open transaction, or runs without one.

MANDATORY

MANDATORY
Joins the open transaction, and refuses to run without one.

REQUIRES_NEW

REQUIRES_NEW
Suspends the open transaction, if any, and opens its own on another connection. It commits or rolls back independently of the outer one.

NOT_SUPPORTED

NOT_SUPPORTED
Suspends the open transaction, if any, and runs without one.

NEVER

NEVER
Refuses to run inside a transaction.

NESTED

NESTED
Runs in a savepoint of the open transaction, which a failure rolls back to without failing the outer transaction; opens one when none is open.

Method details

values

public static Propagation[] values()

valueOf

public static Propagation valueOf(String name)