Re: EOFetchSpecification "usesDistinct"
Re: EOFetchSpecification "usesDistinct"
- Subject: Re: EOFetchSpecification "usesDistinct"
- From: Chuck Hill <email@hidden>
- Date: Mon, 20 Feb 2006 16:49:29 -0800
Which version? Where are you seeing this? I only see this one:
EOFetchSpecification(String entityName, EOQualifier qualifier,
NSArray sortOrderings, boolean usesDistinct, boolean isDeep,
NSDictionary hints)
Chuck
On Feb 20, 2006, at 4:44 PM, WebObjects wrote:
Dear list,
I am trying to return a distinct list of objects via the
EOFetchSpecification. I’ve always had good luck with the simple
“EOFetchSpecification spec = new EOFetchSpecification("myentity",
qualifier, null);” statement. But when I try adding a boolean to
the ‘usesDistinct’ parameter of the constructor I get an error.
ie. neither of these work:
EOFetchSpecification spec = new EOFetchSpecification("SyncShared",
qualifier, myOrderings, boolTrue);
-or-
EOFetchSpecification spec = new EOFetchSpecification("SyncShared",
qualifier, null, boolTrue);
The API does list this forth parameter as a boolean (true means
distinct, false otherwise).
public EOFetchSpecification(String entityName,
EOQualifier qualifier,
NSArray sortOrderings,
boolean usesDistinct,
boolean isDeep,
NSDictionary hints)
Here is the error I get when I try to build:
syncaccountcreate.java:42: cannot resolve symbol
symbol : constructor EOFetchSpecification
(java.lang.String,com.webobjects.eocontrol.EOQualifier,com.webobjects.
foundation.NSArray,boolean)
Thanks for any guidance, and for pointing out what my be painfully
simple. :)
-Bill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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