Module io.ebean.api

Class AOPTransactionScope

java.lang.Object
io.ebean.plugin.AOPTransactionScope

public final class AOPTransactionScope extends Object
Helper object to make AOP generated code simpler.
  • Constructor Details

    • AOPTransactionScope

      public AOPTransactionScope()
  • Method Details

    • enter

      public static void enter(TxScope txScope)
      Entering an enhanced transactional method.
    • exit

      public static void exit(Object returnOrThrowable, int opCode)
      Exiting an enhanced transactional method.
    • setEnabled

      public static void setEnabled(boolean enabled)
      Defines if the @Transactional does what is supposed to do or is disabled (useful only unit testing)
      Parameters:
      enabled - if set to false, @Transactional will not create a transaction