Class TransactionHelper

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static PlatformTransactionManager manager()
      static TransactionTemplate template() Propagation.REQUIRED, Isolation.
      static TransactionTemplate template(@Nullable() Propagation propagation) Propagation(REQUIRED), Isolation.
      static TransactionTemplate template(@Nullable() Propagation propagation, @Nullable() Isolation isolation) Propagation(REQUIRED), Isolation(DEFAULT) and timeout=-1
      static TransactionTemplate template(@Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds) Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
      static TransactionDefinition definition() Propagation.REQUIRED, Isolation.
      static TransactionDefinition definition(@Nullable() Propagation propagation) Propagation(REQUIRED), Isolation.
      static TransactionDefinition definition(@Nullable() Propagation propagation, @Nullable() Isolation isolation) Propagation(REQUIRED), Isolation(DEFAULT) and timeout=-1
      static TransactionDefinition definition(@Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds) Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
      static <T extends DefaultTransactionDefinition> T definition(@NotNull() T tpl, @Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds) Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
      static TransactionStatus begin() Propagation.REQUIRED, Isolation.
      static TransactionStatus begin(@Nullable() Propagation propagation) Propagation(REQUIRED), Isolation.
      static TransactionStatus begin(@Nullable() Propagation propagation, @Nullable() Isolation isolation) Propagation(REQUIRED), Isolation(DEFAULT) and timeout=-1
      static TransactionStatus begin(@Nullable() Propagation propagation, @Nullable() Isolation isolation, int timeoutSeconds) Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
      static TransactionStatus begin(@NotNull() TransactionDefinition definition) Propagation(REQUIRED), Isolation(DEFAULT) and timeout(-1)
      static void rollback(TransactionStatus status)
      static void commit(TransactionStatus status)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransactionHelper

        TransactionHelper()
    • 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)