Class HelpScopeTrans

java.lang.Object
io.ebeaninternal.api.HelpScopeTrans

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    enter(TxScope txScope)
    Entering an enhanced transactional method.
    static void
    exit(Object returnOrThrowable, int opCode)
    Exiting an enhanced transactional method.
    static void
    setEnabled(boolean enabled)
    Defines if the @Transactional does what is supposed to do or is disabled (useful only unit testing)

    Methods inherited from class java.lang.Object

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

    • HelpScopeTrans

      public HelpScopeTrans()
  • 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