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 14:00:28 UTC
[jira] [Created] (CAY-2112) Expose callback for
"performInTransaction"
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)