Package io.ebeaninternal.api
Class HelpScopeTrans
- java.lang.Object
-
- io.ebeaninternal.api.HelpScopeTrans
-
public class HelpScopeTrans extends Object
Helper object to make AOP generated code simpler.
-
-
Constructor Summary
Constructors Constructor Description HelpScopeTrans()
-
Method Summary
All Methods Static Methods Concrete Methods 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)
-
-
-
Constructor Detail
-
HelpScopeTrans
public HelpScopeTrans()
-
-
Method Detail
-
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
-
-