db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amine Bousta" <abou...@lxsolutions.com>
Subject RE : Casting Records from executeQuery function
Date Mon, 06 Oct 2003 10:10:44 GMT
Thank you so much Matan! :)

I used "populateObjects" that applies a "row2object" to the entire List
and it worked!
When I do a "doSelect" I don't need to do that but with a "executeQuery"
it seems to be necessary. doSelect must surely do a populateObjects
inside.

Thank you again

Amine

-----Message d'origine-----
De : Matan [mailto:matan@matan.com] 
Envoyé : dimanche 5 octobre 2003 22:09
À : 'Apache Torque Users List'
Objet : RE: Casting Records from executeQuery function

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





---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message