Fetching Specified "Raw Rows" with SelectQuery

From: Andrew Lindesay (ap..indesay.co.nz)
Date: Sun Apr 25 2010 - 04:41:27 EDT

  • Next message: Andrus Adamchik: "Re: Missing code in Cayenne Guide"

    Hello;

    The "SelectQuery" has the method "setFetchingDataRows()" which I understand to mean that the query will return a List<org.apache.cayenne.DataRow>.

    I would also like to specify the attribute properties or similar which I would like to be returned for the query –– is this possible with Cayenne?

    For those who are also versed with EOF, I would like to do;

            ...
            EOFetchSpecification fs = new EOFetc...
            fs.setFetchesRawRows(true);
            fs.setRawRowKeyPaths(new NSArray<String>(new String[] { ... }));
            ...

    cheers.

    ___
    Andrew Lindesay
    www.silvereye.co.nz



    This archive was generated by hypermail 2.0.0 : Sun Apr 25 2010 - 04:42:28 EDT