On 14/01/2008, at 8:57 AM, Lachlan Deck wrote:

On 14/01/2008, at 1:32 AM, Andrus Adamchik wrote:

Select<DataRow> query2 = new Select<DataRow>(DataRow.class, "Artist");
query2.andQualifier("artistName = 'ABC'")
     .orQualifier("artistName = 'XYZ'")
     .orderAscending(Artist.ARTIST_NAME_PROPERTY);
List<DataRow> dataRows = context.performQuery(query2);

I don't think this works. i.e., I don't think it's up to the user to determine the type returned for a data row fetch. That's a function of the framework as far as I see it.

How about this?
List<DataRow> dataRows = context.performRawQuery(query1)

Woops, of course some raw fetches return Integer or Long etc (e.g., for a count). The actual data type returned can depend on the column's data-type or otherwise. So:

performRawQuery would could have a signature like this?
public List<?> performRawQuery(...)

with regards,
--

Lachlan Deck

Reply via email to