From torque-dev-return-6546-apmail-db-torque-dev-archive=db.apache.org@db.apache.org Sat Apr 01 12:28:24 2006 Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 62935 invoked from network); 1 Apr 2006 12:28:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Apr 2006 12:28:24 -0000 Received: (qmail 27813 invoked by uid 500); 1 Apr 2006 12:28:24 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 27795 invoked by uid 500); 1 Apr 2006 12:28:23 -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 27784 invoked by uid 99); 1 Apr 2006 12:28:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Apr 2006 04:28:23 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 01 Apr 2006 04:28:22 -0800 Received: (qmail 62873 invoked by uid 1977); 1 Apr 2006 12:28:02 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 1 Apr 2006 12:28:02 -0000 Date: Sat, 1 Apr 2006 04:28:02 -0800 (PST) From: Thomas Fischer To: torque-dev@db.apache.org Subject: Reworking of runtime database information structure Message-ID: <20060401041136.H56588@minotaur.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Rating: localhost 1.6.2 0/1000/N X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, In the present state, the information the runtime is keeping about the databases it acesses is not organized cleanly. At the moment, Torque keeps different Maps of database adapters, of database maps, of data source factories etc. Also, things are hidden where they are not expected: in my eyes it makes no sense to keep the id broker in the database map, or the schema name in the data source factory. I'd therefore propose to change the internal representation of the data such that there is one top level object per database, called "Database", which keeps all the information the runtime has about a certain database. Specifically, it would provide access to the database map, the data source factory, the database adapter, the id broker, the id generators, and the schema name. To soften the transition, the id broker, the id generators, and the schema name would stay at their current places (database map and data source factory), but the acessors would be deprecated. After the next release, the references themselves would be moved to the database map and the deprecated methods would be removed. Please send objections, requests for clarifications etc in the next few days, otherwise I'll simply do it. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org