ERXFetchSpecificationBatchIterator how ???
ERXFetchSpecificationBatchIterator how ???
- Subject: ERXFetchSpecificationBatchIterator how ???
- From: WoDev VisionWorx <email@hidden>
- Date: Tue, 15 Mar 2005 17:16:56 -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