• 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
ERXFetchSpecificationBatchIterator how ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERXFetchSpecificationBatchIterator how ???


  • Subject: ERXFetchSpecificationBatchIterator how ???
  • From: WoDev VisionWorx <email@hidden>
  • Date: Tue, 15 Mar 2005 15:50:16 -0500

below is how i tried to use the ERXFetchSpecificationBatchItererator:
can someone please fill me in on how I get the first batch of objects ???
if a sample code method could be provided just to illustrate exactly how to use this ?

public NSArray getFirstBatch() {

EOEditingContext dEC = this.session().defaultEditingContext();

NSArray bindings = new NSArray (new Object[] {"L"});
EOQualifier qualifier = EOQualifier.qualifierWithQualifierFormat("deptcode like %@" , bindings);


EOFetchSpecification fetchItems = new EOFetchSpecification("Linnew", qualifier, null);
fetchItems.setFetchLimit(12);


ERXFetchSpecificationBatchIterator erxbi = new ERXFetchSpecificationBatchIterator(fetchItems, dEC, 40);
reportItems = dEC.objectsWithFetchSpecification(fetchItems);
return erxbi.nextBatch();
}


This does not work....nor can i even get the fetch limiting on the fetch spec to work ?? i'm searching on a 782,600 record database and of course would only like to show maybe 100 per page. But I only need to have say 100 EO's in memory at a time to not create Out Of Memory errors... please help ??

thx,
Nathan

 _______________________________________________
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

  • Prev by Date: Re: Why can't I get <addObjectToBothSidesOfRelationshipWithKey> right?
  • Next by Date: ERXFetchSpecificationBatchIterator how ???
  • Previous by thread: Re: WOTextField Validation Messages
  • Next by thread: ERXFetchSpecificationBatchIterator how ???
  • Index(es):
    • Date
    • Thread