Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1EDE0D4DA for ; Mon, 24 Sep 2012 07:08:24 +0000 (UTC) Received: (qmail 70032 invoked by uid 500); 24 Sep 2012 07:08:23 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 69600 invoked by uid 500); 24 Sep 2012 07:08:22 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 66825 invoked by uid 99); 24 Sep 2012 07:08:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 07:08:19 +0000 Date: Mon, 24 Sep 2012 18:08:18 +1100 (NCT) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: <1096375922.115505.1348470498799.JavaMail.jiratomcat@arcas> In-Reply-To: <21071819.9353.1335272734801.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (TORQUE-195) Remove autocommit handling from Transaction management MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fox closed TORQUE-195. ----------------------------- > Remove autocommit handling from Transaction management > ------------------------------------------------------ > > Key: TORQUE-195 > URL: https://issues.apache.org/jira/browse/TORQUE-195 > Project: Torque > Issue Type: Improvement > Components: Runtime > Affects Versions: 3.3, 3.3.1 > Reporter: Thomas Fox > Assignee: Thomas Fox > Fix For: 4.0-beta1 > > > Currently, transaction handling is very unclean. > - Transaction.beginOptional sets autocommit to false on a connection under certain conditions, but Transaction.commit() does not know what autocommit was beforehand and sets it to true under certain conditions, regardless of the connection state before > - The field Criteria.useTransaction can be used to disable the autocommit switching when starting a transaction (but not the switching back) > Autocommit should be handled by the connection pool, not by the OR Mapper, and should be removed from the Torque code. This would lead to the following modifications > - remove the Transaction.beginOptional method > - remove the useTransaction field from Criteria > If an explicit transaction handling is desired, this can still be done by doing the connection/transaction handling in application code and using the methods which take a transaction. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org