Antwort: Get results as ints

Thomas Fischer <[email protected]> Mon, 4 Jan 2010 13:47:29 +0100
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <OFD1112CE1.0AD5430E-ONC12576A1.00460B75-C12576A1.00464482@seitenbau.net>
> I would like to select all ids from a table (with a certain criteria). If
I
> use addSelectColumn on my criteria and do BasePeer.doSelect(criteria), I
> only get the columns that I want but they are in form of record objects.
Can
> I get a list of ints, strings or whatever or do I need to convert the
list
> myself?

Currently, you need to convert the results yourself. It is not that
problematic, see the generated peer code as an example. If I remember
correctly, the record object contains value objects which have an asInt
method, but the code is more reliable than my memory.

    Thomas