Class ScopeTrans

java.lang.Object
io.ebeaninternal.api.ScopeTrans

public final class ScopeTrans extends Object
Used internally to handle the scoping of transactions for methods.
  • Constructor Details

    • ScopeTrans

      public ScopeTrans(boolean rollbackOnChecked, boolean created, SpiTransaction transaction, TxScope txScope)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • complete

      public void complete()
      Complete the transaction programmatically. Try to commit.
    • end

      public void end()
    • caughtError

      public Error caughtError(Error e)
      An Error was caught and this ALWAYS causes a rollback to occur. Returns the error and this should be thrown by the calling code.
    • setRollbackOnly

      public void setRollbackOnly()
      Mark the underlying transaction as rollback only.
    • caughtThrowable

      public <T extends Throwable> T caughtThrowable(T e)
      An Exception was caught and may or may not cause a rollback to occur. Returns the exception and this should be thrown by the calling code.
    • putUserObject

      public void putUserObject(String name, Object value)
    • getUserObject

      public Object getUserObject(String name)