• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Raw rows do not return all records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Raw rows do not return all records


  • Subject: Raw rows do not return all records
  • From: Henrique Prange <email@hidden>
  • Date: Sat, 20 Jun 2009 13:15:27 -0300

Hi everybody,

I'm facing a problem using raw rows fetching. The fetch returns less records than I expect with this option. I've written the following example to demonstrate the problem:

EOFetchSpecification fetchSpecification = new EOFetchSpecification(entityName, qualifier, sortOrderings);

NSArray eos = editingContext.objectsWithFetchSpecification(fetchSpecification);

System.out.println("The array of objects size is " + eos.size());

fetchSpecification.setFetchesRawRows(true);
fetchSpecification.setRawRowKeyPaths(keyPaths);

NSArray resultSet = editingContext.objectsWithFetchSpecification(fetchSpecification);

System.out.println("The raw rows resultSet size is " + resultSet.size());

I was expecting the same result printed in the console. But the size of the result set is always smaller than the size of the array of objects. Am I doing something wrong?

BTW, Im using WO 5.4.3.

Cheers,

Henrique
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Raw rows do not return all records
      • From: Henrique Prange <email@hidden>
  • Prev by Date: Re: How can I use a components code?
  • Next by Date: Re: Large dataset for RDBMS/EOF tests?
  • Previous by thread: Re: Large dataset for RDBMS/EOF tests
  • Next by thread: Re: Raw rows do not return all records
  • Index(es):
    • Date
    • Thread