Class TransactionHelper
-
- All Implemented Interfaces:
public class TransactionHelper- Since:
2024-06-13
trydofor
-
-
Constructor Summary
Constructors Constructor Description TransactionHelper()
-
Method Summary
Modifier and Type Method Description static PlatformTransactionManagermanager()static TransactionTemplatetemplate()Propagation.REQUIRED, Isolation. static TransactionTemplatetemplate(@Nullable() Propagation propagation)Propagation(REQUIRED), Isolation. static TransactionTemplatetemplate(@Nullable() Propagation propagation, @Nullable() Isolation isolation)Propagation(REQUIRED), Isolation(DEFAULT) and timeout=-1 static TransactionTemplatetemplate(@Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds)Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1) static TransactionDefinitiondefinition()Propagation.REQUIRED, Isolation. static TransactionDefinitiondefinition(@Nullable() Propagation propagation)Propagation(REQUIRED), Isolation. static TransactionDefinitiondefinition(@Nullable() Propagation propagation, @Nullable() Isolation isolation)Propagation(REQUIRED), Isolation(DEFAULT) and timeout=-1 static TransactionDefinitiondefinition(@Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds)Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1) static <T extends DefaultTransactionDefinition> Tdefinition(@NotNull() T tpl, @Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds)Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1) static TransactionStatusbegin()Propagation.REQUIRED, Isolation. static TransactionStatusbegin(@Nullable() Propagation propagation)Propagation(REQUIRED), Isolation. static TransactionStatusbegin(@Nullable() Propagation propagation, @Nullable() Isolation isolation)Propagation(REQUIRED), Isolation(DEFAULT) and timeout=-1 static TransactionStatusbegin(@Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds)Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1) static TransactionStatusbegin(@NotNull() TransactionDefinition definition)Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1) static voidrollback(TransactionStatus status)static voidcommit(TransactionStatus status)-
-
Method Detail
-
manager
@NotNull() static PlatformTransactionManager manager()
-
template
@NotNull() static TransactionTemplate template()
Propagation.REQUIRED, Isolation.DEFAULT and timeout=-1
-
template
@NotNull() static TransactionTemplate template(@Nullable() Propagation propagation)
Propagation(REQUIRED), Isolation.DEFAULT and timeout=-1
-
template
@NotNull() static TransactionTemplate template(@Nullable() Propagation propagation, @Nullable() Isolation isolation)
Propagation(REQUIRED), Isolation(DEFAULT) and timeout=-1
-
template
@NotNull() static TransactionTemplate template(@Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds)
Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
-
definition
@NotNull() static TransactionDefinition definition()
Propagation.REQUIRED, Isolation.DEFAULT and timeout=-1
-
definition
@NotNull() static TransactionDefinition definition(@Nullable() Propagation propagation)
Propagation(REQUIRED), Isolation.DEFAULT and timeout=-1
-
definition
@NotNull() static TransactionDefinition definition(@Nullable() Propagation propagation, @Nullable() Isolation isolation)
Propagation(REQUIRED), Isolation(DEFAULT) and timeout=-1
-
definition
@NotNull() static TransactionDefinition definition(@Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds)
Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
-
definition
@Contract(value = "_,_,_,_->param1") static <T extends DefaultTransactionDefinition> T definition(@NotNull() T tpl, @Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds)
Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
-
begin
@NotNull() static TransactionStatus begin()
Propagation.REQUIRED, Isolation.DEFAULT and timeout=-1
-
begin
@NotNull() static TransactionStatus begin(@Nullable() Propagation propagation)
Propagation(REQUIRED), Isolation.DEFAULT and timeout=-1
-
begin
@NotNull() static TransactionStatus begin(@Nullable() Propagation propagation, @Nullable() Isolation isolation)
Propagation(REQUIRED), Isolation(DEFAULT) and timeout=-1
-
begin
@NotNull() static TransactionStatus begin(@Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds)
Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
-
begin
@NotNull() static TransactionStatus begin(@NotNull() TransactionDefinition definition)
Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
-
rollback
static void rollback(TransactionStatus status)
-
commit
static void commit(TransactionStatus status)
-
-
-
-