Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 52768 invoked from network); 5 Oct 2003 20:03:16 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Oct 2003 20:03:16 -0000 Received: (qmail 47619 invoked by uid 500); 5 Oct 2003 20:03:02 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 47609 invoked by uid 500); 5 Oct 2003 20:03:02 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 47596 invoked from network); 5 Oct 2003 20:03:02 -0000 Received: from unknown (HELO mxout2.netvision.net.il) (194.90.9.21) by daedalus.apache.org with SMTP; 5 Oct 2003 20:03:02 -0000 Received: from matan ([212.235.42.132]) by mxout2.netvision.net.il (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HMA00HKQVP5MK@mxout2.netvision.net.il> for torque-user@db.apache.org; Sun, 05 Oct 2003 22:03:05 +0200 (IST) Date: Sun, 05 Oct 2003 22:08:43 +0200 From: Matan Subject: RE: Casting Records from executeQuery function In-reply-to: <000001c38b77$7de785c0$4c67dc51@amine> To: 'Apache Torque Users List' Message-id: <001301c38b7c$7a4602c0$842aebd4@matan> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.4510 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Amine, executeQuery returns a List of Records (com.workingdogs.village.Record), not the usual OM classes created by Torque. You can either access the information straight from the Record object with methods like getValue(row#), or you can convert the Record into a proper OM object if it's compatible with one of them. To do that conversion, there is the row2object function of the Peer classes. Hope that helps, Matan -----Original Message----- From: Amine Bousta [mailto:abousta@lxsolutions.com] Sent: Sunday, October 05, 2003 21:33 To: 'Apache Torque Users List' Subject: Casting Records from executeQuery function Hello, Does anybody experienced any problem with the "executeQuery" function of BasePeer? When I cast records of a List coming from the "doSelect" method it works. But when I try to cast records of the same List coming from the "executeQuery" method it doesn't work. So I can't use executeQuery in my program. Am I alone in this situation? Regards --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org