Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public enum Propagation
- Object
- Enum<Propagation>
- 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
REQUIRED | Joins the open transaction, or opens one. |
SUPPORTS | Joins the open transaction, or runs without one. |
MANDATORY | Joins the open transaction, and refuses to run without one. |
REQUIRES_NEW | Suspends the open transaction, if any, and opens its own on another connection. |
NOT_SUPPORTED | Suspends the open transaction, if any, and runs without one. |
NEVER | Refuses to run inside a transaction. |
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. |
Methods
public static Propagation[] values() | |
public static Propagation valueOf(String name) |
Inherited methods
Enum constant details
REQUIRED
REQUIREDJoins the open transaction, or opens one. The default.
SUPPORTS
SUPPORTSJoins the open transaction, or runs without one.
MANDATORY
MANDATORYJoins the open transaction, and refuses to run without one.
REQUIRES_NEW
REQUIRES_NEWSuspends 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_SUPPORTEDSuspends the open transaction, if any, and runs without one.
NEVER
NEVERRefuses to run inside a transaction.
NESTED
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.
Method details
values
public static Propagation[] values()valueOf
public static Propagation valueOf(String name)