You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2016/09/19 15:23:20 UTC

[jira] [Closed] (CAY-2112) Expose callback for "performInTransaction"

     [ https://issues.apache.org/jira/browse/CAY-2112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-2112.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0.M4

> Expose callback for "performInTransaction"
> ------------------------------------------
>
>                 Key: CAY-2112
>                 URL: https://issues.apache.org/jira/browse/CAY-2112
>             Project: Cayenne
>          Issue Type: Improvement
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 4.0.M4
>
>
> TransactionManager API added per CAY-1778 is nice to batch a bunch of operations in a single transaction. It is missing the API to control transaction parameters though. So we are back to API similar to the old TransactionDelegate, except the callback can be applied to individual operations (the delegate was inconveniently a stack singleton). The new API will look like this:
> ServerRuntime.performInTransaction(TransactionOperation, TransactionListener)
> and will allow to customize connection isolation level, etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)