Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 61819 invoked from network); 13 Sep 2005 10:29:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2005 10:29:13 -0000 Received: (qmail 37191 invoked by uid 500); 13 Sep 2005 10:29:11 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 36825 invoked by uid 500); 13 Sep 2005 10:29:09 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 36812 invoked by uid 99); 13 Sep 2005 10:29:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2005 03:29:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [80.24.209.146] (HELO server.honek.org) (80.24.209.146) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2005 03:29:19 -0700 Received: from localhost (localhost [127.0.0.1]) by server.honek.org (ESMTP Sendmail 8.9.11 on SuSE Linux 7.1 (i386)) with ESMTP id 59580111FE for ; Tue, 13 Sep 2005 12:40:27 +0200 (CEST) Received: from server.honek.org ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21881-08 for ; Tue, 13 Sep 2005 12:40:26 +0200 (CEST) Received: from www.lpis.com (localhost [127.0.0.1]) by server.honek.org (ESMTP Sendmail 8.9.11 on SuSE Linux 7.1 (i386)) with ESMTP id D072C111E2 for ; Tue, 13 Sep 2005 12:40:26 +0200 (CEST) Received: from 194.30.80.57 (SquirrelMail authenticated user dionisio); by www.lpis.com with HTTP; Tue, 13 Sep 2005 12:40:26 +0200 (CEST) Message-ID: <35057.194.30.80.57.1126608026.squirrel@194.30.80.57> Date: Tue, 13 Sep 2005 12:40:26 +0200 (CEST) Subject: commit From: "dionisio@tinieblas.com" To: user-java@ibatis.apache.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hello i have the bellow code and my fisrt quiestion is where must i (in the code) to make, to put, the commit, the: daoManager.startTransaction(); daoManager.commitTransaction(); thanks. The code is: public class DatabaseActions extends SqlMapDaoTemplate { public DatabaseActions(DaoManager daoManager) { super(daoManager); } public final Object getObject( String statementName, Object parameterObject) { Object result = null; result = queryForObject(statementName, parameterObject); return result; } public final List getList(String statementName, Object parameterObject) { List list = null; list = queryForList(statementName, parameterObject); return list; } public final Object insert(String statementName, Object parameterObject) { Object result = null; insert(statementName, parameterObject); return result; } public final int update(String statementName, Object parameterObject) { int result = 0; update(statementName, parameterObject); return result; } public final int delete(String statementName, Object parameterObject) { int result = -1; delete(statementName, parameterObject); return result; } } //clase