From torque-dev-return-6639-apmail-db-torque-dev-archive=db.apache.org@db.apache.org Thu Apr 27 07:02:53 2006 Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 3018 invoked from network); 27 Apr 2006 07:02:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Apr 2006 07:02:52 -0000 Received: (qmail 42525 invoked by uid 500); 27 Apr 2006 07:02:51 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 42495 invoked by uid 500); 27 Apr 2006 07:02:50 -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 42484 invoked by uid 99); 27 Apr 2006 07:02:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 00:02:50 -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 [194.94.251.54] (HELO gate-mail.tewisoft.de) (194.94.251.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 00:02:49 -0700 Received: from mail.tewisoft.de (mail.hq.tewisoft.de [192.168.20.18]) by gate-mail.tewisoft.de (Postfix) with ESMTP id 498D38E59 for ; Thu, 27 Apr 2006 12:43:14 +0200 (CEST) Received: by mail.tewisoft.de (Postfix, from userid 65534) id 67A484D194; Thu, 27 Apr 2006 09:02:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail.tewisoft.de X-Spam-Level: Received: from localhost (localhost [127.0.0.1]) by mail.tewisoft.de (Postfix) with ESMTP id 965AD4D249; Thu, 27 Apr 2006 09:02:20 +0200 (CEST) Received: from [192.168.20.120] (shell10.tewisoft.de [192.168.20.120]) by mail.tewisoft.de (Postfix) with ESMTP id 350ED4D06A for ; Thu, 27 Apr 2006 09:02:19 +0200 (CEST) Message-ID: <44506C7A.2010201@tewisoft.de> Date: Thu, 27 Apr 2006 09:02:18 +0200 From: Thomas Vandahl User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: de-de, en-us MIME-Version: 1.0 To: Apache Torque Developers List Subject: Re: Plan to enhance Database Mapping info References: <8F5843B903F59D4C8C6806BB49A39119062A6C@dukece-mail3.dukece.com> In-Reply-To: <8F5843B903F59D4C8C6806BB49A39119062A6C@dukece-mail3.dukece.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-109.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_20, USER_IN_WHITELIST,USER_IN_WHITELIST_TO autolearn=ham version=3.1.0 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Greg Monroe wrote: > I've mentioned several times in the past that I planned to take > Henning's Mapbuilder-init proposal code he submitted 2+ years ago > and update it to work with the latest version. Well, I've finally > found some time to do this. [...] It looks all very useful to me. Please go ahead. > 1) Create a way that the full DB map can be initialized based on > Henning's proposal. This would involve the Init class (ala H) > and couple of new Torque/TorqueInstance methods like: > > Torque.getDatabaseMap( String DbName, boolean init ) Please keep in mind that the Avalon interface (Torque/TorqueComponent) should be updated as well. > 2) Modify the Table OM, Peer, and Map objects to include symetrical > methods so that any object can easily get the other two (via public > methods.) E.g., Peer currently has getOmClass() and getTableMap() > methods. But getTableMap() is protected and should be made public. > The Table OM class has a getPeer() method, but probably should have > a getTableMap() convienience/symetrical method. TableMap needs > getOmClass() and getPeer() methods. What about the managers? Maybe I'm the only one who uses JCS caching, but I would love to see them considered... This would require some getManager() method in all objects and getOmClass(), getPeer() and getTableMap() in the managers. Just one question for my understanding. Why do you need special introspection code if you can have Beans generated? Could you give some example where this is useful? Bye, Thomas. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org