Andrus Adamchik created CAY-2112:
------------------------------------

             Summary: 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


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)

Reply via email to