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 1084A988D for ; Tue, 24 Apr 2012 13:05:59 +0000 (UTC) Received: (qmail 37325 invoked by uid 500); 24 Apr 2012 13:05:58 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 37222 invoked by uid 500); 24 Apr 2012 13:05:58 -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 36769 invoked by uid 99); 24 Apr 2012 13:05:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 13:05:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 13:05:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B6B2940C849 for ; Tue, 24 Apr 2012 13:05:34 +0000 (UTC) Date: Tue, 24 Apr 2012 13:05:34 +0000 (UTC) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: <21071819.9353.1335272734801.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (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 X-Virus-Checked: Checked by ClamAV on apache.org Thomas Fox created TORQUE-195: --------------------------------- Summary: 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.1, 3.3 Reporter: Thomas Fox 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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