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 F140264EE for ; Fri, 15 Jul 2011 16:05:22 +0000 (UTC) Received: (qmail 686 invoked by uid 500); 15 Jul 2011 16:05:22 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 665 invoked by uid 500); 15 Jul 2011 16:05:22 -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 649 invoked by uid 99); 15 Jul 2011 16:05:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 16:05:22 +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; Fri, 15 Jul 2011 16:05:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A2D645942F for ; Fri, 15 Jul 2011 16:05:00 +0000 (UTC) Date: Fri, 15 Jul 2011 16:05:00 +0000 (UTC) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: <1046556656.17822.1310745900663.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (TORQUE-167) Remove the filed Criteria.Criterion.db MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Remove the filed Criteria.Criterion.db -------------------------------------- Key: TORQUE-167 URL: https://issues.apache.org/jira/browse/TORQUE-167 Project: Torque Issue Type: Improvement Components: Runtime Reporter: Thomas Fox Assignee: Thomas Fox The db field of the Criterion specifies which database dialect is used for rendering this Criterion in SQL. In my opinion the database dialect should be determined from a criteria field, not from any nested object. Implications: As a criterion is no standalone class, but an inner class of a Criteria, it always has a criteria attached and its SQL is only rendered in the context of this criteria. As the criteria has a field dbName by which the db adapter can be found out via Torque.getDB(criteria.getDbName()), I propose to remove the db field from Criterion together with its getters and setters and use the dbName field of the criteria instead to determine which Adapter should be used. -- This message is automatically generated by JIRA. 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