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 150D3D4AB for ; Sun, 26 Aug 2012 10:45:25 +0000 (UTC) Received: (qmail 41176 invoked by uid 500); 26 Aug 2012 10:45:24 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 41086 invoked by uid 500); 26 Aug 2012 10:45:24 -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 41062 invoked by uid 99); 26 Aug 2012 10:45:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Aug 2012 10:45:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.24.207.26] (HELO mail.seitenbau.net) (217.24.207.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Aug 2012 10:45:17 +0000 Received: from www.seitenbau.net ([192.168.15.18]:33546) by mail.seitenbau.net with esmtp (Exim 4.76) (envelope-from ) id 1T5aKq-0002HT-1v for torque-dev@db.apache.org; Sun, 26 Aug 2012 12:44:52 +0200 X-CTCH-RefID: str=0001.0A0B0205.5039FE24.00CA,ss=1,re=0.000,fgs=0 Sensitivity: MIME-Version: 1.0 Importance: Normal X-Priority: 3 (Normal) In-Reply-To: References: Subject: Changed default constructors of generated PeerImpl From: Thomas Fox To: torque-dev@db.apache.org X-MIMETrack: MIME-CD by Notes Server on www/seitenbau(Release 8.5HF467 | May 15, 2009) at 08/26/2012 12:44:52, MIME-CD complete at 08/26/2012 12:44:52, Serialize by Router on www/seitenbau(Release 8.5HF467 | May 15, 2009) at 08/26/2012 12:44:52 Message-ID: Date: Sun, 26 Aug 2012 12:44:52 +0200 X-Mailer: Lotus Domino Web Server Release 8.5HF467 May 15, 2009 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Before BasePeerImpl was generified, the BasePeerImpl had a constructor which worked without additional setters. The implementation of the generification changed that (it needed the injection of TableMap, RecordMapper, databaseName after construction). This made the usage of the PeerImpl casses as standalone classes more comlicated. To change that, I made the default constructor read its table map, database name and record mapper from the static generated peer class. For those which do not want to have this, I introduced another constructor to which these resources can be passed as input. I am aware that this introduces direct dependencies from the generated PeerImpl classes to the Peer classes, but as Torque will not work with out the generated peer classes anyway I think it's ok. Besides that people can use the other constructor. Thomas V, please check whether the solution is ok for you. Personally, I believe that even the setters for table map, database name and record mapper can be removed from BasePeerImpl. If that discussion is through, I believe that we can set TORQUE-220 to resolved. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org