Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-20594

Add TransactionHelper.runInTransaction convenience method

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10
    • Component/s: Core
    • Tags:
    • Sprint:
      nxFG 8.4.6

      Description

      TransactionHelper.runInTransaction taking a Supplier<R> is useful to have, in addition to the signature taking a Runnable already added during NXP-19361.

      This allows callers to do:

          return TransactionHelper.runInTransaction(() -> {...; return someObject;});
      

      and (with Runnable):

          TransactionHelper.runInTransaction(() -> {...});
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: