Derived count
Derived count
- Subject: Derived count
- From: Lachlan Deck <email@hidden>
- Date: Fri, 9 Feb 2007 10:32:39 +1100
Hi there,
For some time now we've been using the technique of defining a non-
class property in the model called "derivedCount" with it's
definition as count(*).
Works great. e.g.,
EOEditingContext ec; // assume exists
EOFetchSpecification fetchSpec; // assume exists
NSArray results;
fetchSpec.setRawRowKeyPaths( new NSArray( "derivedCount" ) );
results = ec.objectsWithFetchSpecification( rawFetchspecification );
My question is, would this work equally well with the shared editing
context using the readerLocking?
with regards,
--
Lachlan Deck
_______________________________________________
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