Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 74315 invoked from network); 22 Jun 2006 07:54:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2006 07:54:58 -0000 Received: (qmail 16082 invoked by uid 500); 22 Jun 2006 07:54:58 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 15953 invoked by uid 500); 22 Jun 2006 07:54:57 -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 15942 invoked by uid 99); 22 Jun 2006 07:54:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 00:54:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 00:54:57 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 91C367141F0 for ; Thu, 22 Jun 2006 07:53:31 +0000 (GMT) Message-ID: <13465082.1150962811593.JavaMail.jira@brutus> Date: Thu, 22 Jun 2006 07:53:31 +0000 (GMT+00:00) From: "Thoralf Rickert (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Updated: (TORQUE-31) complete generic type compatible API In-Reply-To: <25565406.1150618589868.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/TORQUE-31?page=all ] Thoralf Rickert updated TORQUE-31: ---------------------------------- Attachment: TORQUE-31.patch Okay, this are the changes for the Peer.vm to be a little bit more generic type compatible. > complete generic type compatible API > ------------------------------------ > > Key: TORQUE-31 > URL: http://issues.apache.org/jira/browse/TORQUE-31 > Project: Torque > Type: Improvement > Components: Generator > Versions: 3.2.1 > Reporter: Thoralf Rickert > Priority: Trivial > Attachments: TORQUE-31.patch > > If the generator creates Java5 compatible methods then there are some methods from BasePeer that are not wrapped. This includes for example the execute*() methods. If we wrap them in the generated classes the API looks a little bit better. > Currently there is just one easy solution in my mind - wrap this methods in the generated Base classes. For example: > public class BaseTablePeer extends BasePeer { > .... > public static List executeQuery(String queryString) throws TorqueException { > return (List)super.executeQuery(queryString); > } > .... > } > This means, that every public method in BasePeer should be wrapped in the generated class. I know, this is a lot and results in bigger classes and some synchronization problems, if the API of BasePeer is changed. But I think, it's easy to create. > I'll create a patch for that next week. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - 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