Class ScopeTrans


  • public class ScopeTrans
    extends Object
    Used internally to handle the scoping of transactions for methods.
    • Method Detail

      • 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.